When i add a web reference to my client app, the web reference classes properties are changed from ILists to arrays. So snippet below. Would there be a reason for this? I just like working with ILists more since they are so dynamic. Could i change this on n client side to ILists?
Server side
[DataMember]
public IList<Lookup> Looku开发者_开发问答p { get; set; }
Client side
[System.Runtime.Serialization.DataMemberAttribute()]
public FANDI.Data.BusinessObjects.Lookup[] Lookup
{
get
{
return this.LookupField;
}
set
{
this.LookupField = value;
}
}
A web service reference don't support Lists, only arrays.
If you use Service Reference
instead of Web Reference
you can specify the collection type to use.
public FANDI.Data.BusinessObjects.Lookup[] Lookup
That line of code suggests that it is an array of lookup objects (Lookup[]).
Can you not change this to
public IList<FANDI.Data.BusinessObjects.Lookup> Lookup
精彩评论