private static JObject ToJObject(IObjectData value) { if (value == null) { return(null); } else { JsonObjectData obj = value as JsonObjectData; if (obj == null) { throw new ArgumentException("The value is not created from this object."); } return(obj.jsonObject); } }
public bool Equals(IObjectData obj) { JsonObjectData that = obj as JsonObjectData; return((that == null) ? false : JToken.DeepEquals(this.jsonObject, that.jsonObject)); }