示例#1
0
文件: Segment.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((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
文件: Rectangle.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 (BottomLeft.GetHashCode() * 397) ^ TopRight.GetHashCode();
     }
 }