public Equals ( IJsonString other ) : bool | ||
other | IJsonString | The value to compare. |
return | bool |
/// <summary> /// Determines if the two <see cref="NetServ.Net.Json.JsonString"/>s are /// equal. /// </summary> /// <param name="a">The first JsonString.</param> /// <param name="b">The second JsonString.</param> /// <returns>True if the JsonStrings are equal, otherwise; false.</returns> public static bool Equals(JsonString a, JsonString 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> /// Equality operator. /// </summary> /// <param name="a">The first JsonString.</param> /// <param name="b">The second JsonString.</param> /// <returns>True if the JsonStrings are equal, otherwise; false.</returns> public static bool operator ==(JsonString a, JsonString b) { return(JsonString.Equals(a, b)); }