c# print class code example Example: .net c# print object Console.WriteLine(JsonConvert.SerializeObject(OBJECTNAME, Formatting.Indented));