/// <summary> /// Tries the get field. /// </summary> /// <param name="fieldName">Name of the field.</param> /// <param name="fieldValue">The field value.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool TryGetField(string fieldName, out JsonField fieldValue) { if (r_Fields.Value(this).Contains(fieldName)) { fieldValue = r_Fields.Value(this)[fieldName]; return(true); } fieldValue = null; return(false); }
/// <summary> /// Froms the token. /// </summary> /// <param name="token">The token.</param> /// <returns>JsonField.</returns> public static JsonField FromToken(JToken token) { var instance = new JsonField(token); return(instance); }