Convert C# Object to JSON string

Hi Everyone,

Check this post for Convert JSON object to C# Object.

Here is the easy way to convert C# to JSON String without using external references.

[DataContract]
        public class MyClass 
        {
            [DataMember]
            public string Firstname { get; set; }
            [DataMember]
            public string Lastname { get; set; }
        }

        static void...

Continue Reading Gopinath’s Article on their blog

Convert C# Object to JSON string

Hi Everyone, Check this post for Convert JSON object to C# Object. Here is the easy way to convert C# to JSON String without using external references. [DataContract] public class MyClass { [DataMember] public string Firstname { get; set; } [DataMember] public string Lastname { get; set; } } static void Main(string[] args) { MyClass…

Blog Syndicated with Gopinath’s Permission

Author: Gopi Nath

Share This Post On

SCOTtish summit 2021

On February the 27th Scottish Summit 2021 will come to you as a virtual event. With over 250 sessions from all Microsoft technologies. You need to register for your FREE ticket and download the Scottish Summit App to see all the great sessions.