Exemplo n.º 1
0
 /// <summary>
 /// Returns a value indicating equality with the specified instance.
 /// </summary>
 /// <param name="other">The <see cref="Vlad2Net.Json.IJsNumber"/> to compare.</param>
 /// <returns></returns>
 public int CompareTo(IJsNumber other)
 {
     return(other != null?this.Value.CompareTo(other.Value) : -1);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a indicating whether this instance is equal to the specified
 /// <see cref="Vlad2Net.Json.IJsNumber"/>.
 /// </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(IJsNumber other)
 {
     return(other != null && this.Value == other.Value);
 }