Пример #1
0
 public override bool Equals(FuncName p1, FuncName p2)
 {
     if (p1.n != p2.n)
     {
         return(false);
     }
     return(_ptrlencmp.Equals(p1.name, p2.name));
 }
Пример #2
0
 /// <summary>
 /// Test two entries for equality
 /// </summary>
 /// <param name="entry1">First entry</param>
 /// <param name="entry2">Second entry</param>
 /// <returns>True if keys are equal</returns>
 public bool Equals(KeyValuePair <K, V> entry1, KeyValuePair <K, V> entry2)
 {
     return(keyequalityComparer.Equals(entry1.Key, entry2.Key));
 }
Пример #3
0
 /// <summary>
 /// Test two entries for equality
 /// </summary>
 /// <param name="entry1">First entry</param>
 /// <param name="entry2">Second entry</param>
 /// <returns>True if keys are equal</returns>
 public bool Equals(System.Collections.Generic.KeyValuePair <K, V> entry1, System.Collections.Generic.KeyValuePair <K, V> entry2)
 {
     return(keyequalityComparer.Equals(entry1.Key, entry2.Key));
 }