Пример #1
0
 /// <summary>
 /// Current GetHashCode implementation not consistent with Equals method (because of
 /// <see cref="Point"/>.<see cref="Point.GetHashCode()"/>
 /// implementation).
 /// <para>Use it only where it really needed and with caution.</para>
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         return((A.GetHashCode() * 397) ^ B.GetHashCode());
     }
 }
Пример #2
0
Файл: Ray.cs Проект: Umqra/tdd
 /// <summary>
 /// Current GetHashCode implementation not consistent with Equals method (because of
 /// <see cref="Point"/>.<see cref="Point.GetHashCode()"/>
 /// implementation).
 /// <para>Use it only where it really needed and with caution.</para>
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         return((From.GetHashCode() * 397) ^ To.GetHashCode());
     }
 }
Пример #3
0
 /// <summary>
 /// Current GetHashCode implementation not consistent with Equals method (because of 
 /// <see cref="Point"/>.<see cref="Point.GetHashCode()"/> 
 /// implementation).
 /// <para>Use it only where it really needed and with caution.</para>
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         return (BottomLeft.GetHashCode() * 397) ^ TopRight.GetHashCode();
     }
 }