Quantcast
Channel: Json.NET
Viewing all articles
Browse latest Browse all 1767

New Post: Deserialize into Dictionary

$
0
0
First , thanks for your JsonObjectConverter, base of this class , I solve my problem about interface collection .
And, for your question, very simple:
            JsonSerializerSettings = new JsonSerializerSettings
            {
                Converters = new JsonConverter[]
                {
                    new JsonObjectConverter<IYourInterface,YourImplement>(),
                },
            };
Other, I tried Binder to resolve implement type name ,but I don't know why binder code don't run .

Viewing all articles
Browse latest Browse all 1767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>