Class NewtonsoftExtensions
Newtonsoft JSON Linq extensions.
Namespace: Neon.Common
Assembly: Neon.Common.dll
Syntax
public static class NewtonsoftExtensions
Methods
CopyTo(JsonSerializerSettings, JsonSerializerSettings)
Copies the settings from one JsonSerializerSettings instance to another.
Declaration
public static void CopyTo(this JsonSerializerSettings source, JsonSerializerSettings target)
Parameters
Type | Name | Description |
---|---|---|
JsonSerializerSettings | source | The source settings. |
JsonSerializerSettings | target | The target instance. |
TryGetValue<T>(JObject, string, out T)
Attempts to return the value of a specified JObject property converted to a specific type.
Declaration
public static bool TryGetValue<T>(this JObject jObject, string propertyName, out T value)
Parameters
Type | Name | Description |
---|---|---|
JObject | jObject | The JObject instance. |
string | propertyName | The property name. |
T | value | Returns as the property value if present. |
Returns
Type | Description |
---|---|
bool |
|
Type Parameters
Name | Description |
---|---|
T | The desired type. |