C
Chris Arnold
Hi All,
Has anyone been able to return a
System.Collection.Specialized.NameValueCollection object from a WebMethod?
Compiles correctly, but then throws an InvalidOperationException on viewing
the asmx file...
"You must implement the Add(System.String) method on
System.Collections.Specialized.NameValueCollection because it inherits from
ICollection."
Fair enough, but ICollection does not require an Add method and neither does
IEnumerable (which ICollection extends).
Is this just a quirk of some strange serialization the CLR is attempting to
perform?
Chris
Has anyone been able to return a
System.Collection.Specialized.NameValueCollection object from a WebMethod?
Compiles correctly, but then throws an InvalidOperationException on viewing
the asmx file...
"You must implement the Add(System.String) method on
System.Collections.Specialized.NameValueCollection because it inherits from
ICollection."
Fair enough, but ICollection does not require an Add method and neither does
IEnumerable (which ICollection extends).
Is this just a quirk of some strange serialization the CLR is attempting to
perform?
Chris