in .net json deserialization ICollection and IEnumerable are interfaces, with no constructor.This mean if
you are binding to one they must exist or you need to supply a custom serializer. In practice this means
an action parameter can not be an interface. If the model has Interface property, the model constructor
must initialize it.
(1) When I am sending data from client side AJAX to the.net server, does it need to be serialized/deserialized?
(2) What is an action parameter in jQuery?
(3) I am confused by "in .net json deserialization ICollection and IEnumerable are interfaces, with no constructor.
This mean if you are binding to one they must exist or you need to supply a custom serializer".
Could you please elaborate and provide an example?
Member
19 Points
66 Posts
Re: Fail to set up a jQuery collection
Jun 12, 2020 05:53 PM|GoldenMicrosoft|LINK
Hi Bruce,
Thanks for your response.
in .net json deserialization ICollection and IEnumerable are interfaces, with no constructor.This mean if
you are binding to one they must exist or you need to supply a custom serializer. In practice this means
an action parameter can not be an interface. If the model has Interface property, the model constructor
must initialize it.
(1) When I am sending data from client side AJAX to the.net server, does it need to be serialized/deserialized?
(2) What is an action parameter in jQuery?
(3) I am confused by "in .net json deserialization ICollection and IEnumerable are interfaces, with no constructor.
This mean if you are binding to one they must exist or you need to supply a custom serializer".
Could you please elaborate and provide an example?