NewtonSoft.Json Serialize and Deserialize class with property of type IEnumerable<ISomeInterface>
NewtonSoft.Json Serialize and Deserialize class with property of type IEnumerable
I am trying to move some code to consume ASP.NET MVC Web API generated Json data instead of SOAP Xml.
I have run into a problem with serializing and deserializing properties of type:
IEnumerable<ISomeInterface>.
Here is a simple example:
public interface ISample{ int SampleId { get; set; } } public class Sample : ISample{ public int SampleId { get; set; } } public class SampleGroup{ public int…
View On WordPress











