Example #1
0
 public static bool operator ==(TestStruct x, TestStruct y) =>
 RecordType <TestStruct> .EqualityTyped(x, y);
Example #2
0
 /// <summary>
 /// Сравнение пользователей.
 /// </summary>
 /// <param name="x"> Первый пользователь. </param>
 /// <param name="y"> Второй пользователь. </param>
 /// <returns> Возвращает результат сравнения. </returns>
 public static bool operator ==(User x, User y)
 {
     return(RecordType <User> .EqualityTyped(x, y));
 }
Example #3
0
 public bool Equals(TestStruct other) =>
 RecordType <TestStruct> .EqualityTyped(this, other);
Example #4
0
 public bool Equals(A x, A y) =>
 RecordType <A> .EqualityTyped(x, y);