Wednesday, 2 January 2019

How to serialize(convert) string of values array of class in C#

Deserialize data from string to list of class:


            List<ClassName> Results = (List<ClassName>)Newtonsoft.Json.JsonConvert.DeserializeObject(string of date, typeof(List<ClassName>));

No comments:

Post a Comment

How to get the value from web.config(if any value assign as static Key)

Web.Config File:   <appSettings>     <add key="DomainName" value="PW" />     </appSettings> Cl...