HI WELCOME TO KANSIRIS

How can I convert an Class Object into String in c# ?

Leave a Comment
Use Json.Net
string s = JsonConvert.SerializeObject(yourObject);
That is all.
You can also use JavaScriptSerializer
string s = new JavaScriptSerializer().Serialize(yourObject);

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.