WCF client side List<> problem

Posted by MrKanin on Stack Overflow See other posts from Stack Overflow or by MrKanin
Published on 2011-01-11T14:38:02Z Indexed on 2011/01/11 15:53 UTC
Read the original article Hit count: 123

Filed under:

Hey there.. i got a WCF service with a method (GetUserSoftware)to send a List to a client.

the software i have difined like this:

[DataContract]
public class Software
{
    public string SoftwareID { get; set; }
    public string SoftwareName { get; set; }
    public string DownloadPath { get; set; }
    public int PackageID { get; set; }

}

the method is going through my db to get all software availeble to the clien, and generates a list of that to send back to the client.

problem is i on the client side the list is turned into an array. and every item in that array dont contain any of my software attributs.

i have debugged my way through the server side. and seen that the list its about to send is correct. with the expected software and attributs in it.

any one know how to work around this or know what i can do ?

© Stack Overflow or respective owner

Related posts about wcf