Skip to main content

Class ExtensionMethods

Assembly: Log73.Extensions.NewtonsoftJson.dll
View Source
Declaration
public static class ExtensionMethods

Methods

Json(ConsoleLogObject, Object)

Log an object as JSON.

View Source
Declaration
public static void Json(this ConsoleLogObject ext, object obj)
Parameters
TypeNameDescription
Log73.Extensible.ConsoleLogObjectextExtension method object.
System.ObjectobjThe object.

Json(ConsoleLogObject, MessageType, Object)

Log an object as JSON using the specified Log73.MessageType.

View Source
Declaration
public static void Json(this ConsoleLogObject ext, MessageType msgType, object obj)
Parameters
TypeNameDescription
Log73.Extensible.ConsoleLogObjectextExtension method object.
Log73.MessageTypemsgTypeThe to log as.
System.ObjectobjThe object.

UseNewtonsoftJson(ConsoleConfigureObject)

Use Log73.Extensions.NewtonsoftJson.NewtonsoftJsonSerializer for object serialization.

View Source
Declaration
public static void UseNewtonsoftJson(this ConsoleConfigureObject ext)
Parameters
TypeNameDescription
Log73.Extensible.ConsoleConfigureObjectextExtension method object.

UseNewtonsoftJson(ConsoleConfigureObject, JsonSerializerSettings)

Use Log73.Extensions.NewtonsoftJson.NewtonsoftJsonSerializer with the specified Newtonsoft.Json.JsonSerializerSettings for object serialization.

View Source
Declaration
public static void UseNewtonsoftJson(this ConsoleConfigureObject ext, JsonSerializerSettings jsonSerializerSettings)
Parameters
TypeNameDescription
Log73.Extensible.ConsoleConfigureObjectextExtension method object.
Newtonsoft.Json.JsonSerializerSettingsjsonSerializerSettingsThe to use when serializing objects.