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
| Type | Name | Description |
|---|---|---|
| Log73.Extensible.ConsoleLogObject | ext | Extension method object. |
System.Object | obj | The 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
| Type | Name | Description |
|---|---|---|
| Log73.Extensible.ConsoleLogObject | ext | Extension method object. |
| Log73.MessageType | msgType | The |
System.Object | obj | The object. |
UseNewtonsoftJson(ConsoleConfigureObject)
Use Log73.Extensions.NewtonsoftJson.NewtonsoftJsonSerializer for object serialization.
View Source
Declaration
public static void UseNewtonsoftJson(this ConsoleConfigureObject ext)
Parameters
| Type | Name | Description |
|---|---|---|
| Log73.Extensible.ConsoleConfigureObject | ext | Extension 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
| Type | Name | Description |
|---|---|---|
| Log73.Extensible.ConsoleConfigureObject | ext | Extension method object. |
Newtonsoft.Json.JsonSerializerSettings | jsonSerializerSettings | The |