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