public bool Equals(JValue other) { if (other == null) { return(false); } return(JValue.ValuesEquals(this, other)); }
internal override bool DeepEquals(JToken node) { if (!(node is JValue v2)) { return(false); } return(v2 == this || JValue.ValuesEquals(this, v2)); }
internal override bool DeepEquals(JToken node) { JValue jValue = node as JValue; if (jValue == null) { return(false); } if (jValue == this) { return(true); } return(JValue.ValuesEquals(this, jValue)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <returns> /// true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false. /// </returns> /// <param name="other">An object to compare with this object.</param> public bool Equals(JValue other) { return(other != null && JValue.ValuesEquals(this, other)); }