/// <summary> /// Returns a value indicating equality with the specified /// <see cref="Vlad2Net.Json.IJsString"/>. /// </summary> /// <param name="other">The <see cref="Vlad2Net.Json.IJsString"/> to /// compare.</param> /// <returns></returns> public int CompareTo(IJsString other) { return(other != null?this.Value.CompareTo(other.Value) : -1); }
/// <summary> /// Returns a indicating whether this instance is equal to the specified /// <see cref="Vlad2Net.Json.IJsString"/>. /// </summary> /// <param name="other">The value to compare.</param> /// <returns>True if the specified instance is equal to this instance, otherwise; /// false.</returns> public bool Equals(IJsString other) { return(other != null && Equals(other.Value)); }