Ejemplo n.º 1
0
 /// <summary>
 /// Returns a value indicating whether this instance and a
 /// specified Object represent the same type and value.
 /// </summary>
 /// <param name="other">The object to compare</param>
 /// <returns>
 ///     <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(ShortGuid other)
 {
     return(_guid.Equals(other._guid));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that indicates the relative order of the objects being compared.
 /// </returns>
 /// <param name="other">
 /// An object to compare with this instance.
 /// </param>
 public int CompareTo(ShortGuid other)
 {
     return(_guid.CompareTo(other._guid));
 }