JTokenUtility class

Utility methods for JToken.

public static class JTokenUtility

Public Members

name description
static readonly EqualityComparer An equality comparer for JToken.
static AreEqual(…) Check two JTokens for equality.
static AsBoolean(…) Returns a Boolean corresponding to the JToken if possible.
static AsDecimal(…) Returns a Decimal corresponding to the JToken if possible.
static AsDouble(…) Returns a Double corresponding to the JToken if possible.
static AsInt32(…) Returns an Int32 corresponding to the JToken if possible.
static AsInt64(…) Returns an Int64 corresponding to the JToken if possible.
static AsNumber(…) Returns the token as a JValue if it corresponds to a number.
static AsString(…) Returns a string corresponding to the JToken if possible.
static Clone<T>(…) Clones the specified Json.NET token.
static GetPersistentHashCode(…) Gets a persistent hash code for the token.
static IsNull(…) Returns true if the JToken is null or represents null.
static TryGetValue(…) Returns the specified array item if possible. (2 methods)

See Also