Ejemplo n.º 1
0
 /// <summary>
 /// Equalses the specified n1.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="n1">The n1.</param>
 /// <param name="n2">The n2.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public static bool Equals <T>(Nameable <T> n1, Nameable <T> n2) => EqualityComparer <T> .Default.Equals(n1.Value, n2.Value);
Ejemplo n.º 2
0
 /// <summary>
 /// Compares the specified n1.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="n1">The n1.</param>
 /// <param name="n2">The n2.</param>
 /// <returns>System.Int32.</returns>
 public static int Compare <T>(Nameable <T> n1, Nameable <T> n2) => Comparer <T> .Default.Compare(n1.Value, n2.Value);