/// <summary> /// Determines if the two <see cref="Vlad2Net.Json.JsString"/>s are /// equal. /// </summary> /// <param name="a">The first JsString.</param> /// <param name="b">The second JsString.</param> /// <returns>True if the JsStrings are equal, otherwise; false.</returns> public static bool Equals(JsString a, JsString b) { object ao = a; object bo = b; if (ao == bo) { return(true); } if (ao == null || bo == null) { return(false); } return(a.Equals(b.Value)); }
/// <summary> /// Inequality operator. /// </summary> /// <param name="a">The first JsString.</param> /// <param name="b">The second JsString.</param> /// <returns>True if the JsStrings are not equal, otherwise; false.</returns> public static bool operator !=(JsString a, JsString b) { return(!JsString.Equals(a, b)); }