Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = X.GetHashCode();
         result = (result * 397) ^ Y.GetHashCode();
         result = (result * 397) ^ IsUnknown.GetHashCode();
         return(result);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = EndPoint.GetHashCode();
         result = (result * 397) ^ StartPoint.GetHashCode();
         result = (result * 397) ^ RunDirection.GetHashCode();
         result = (result * 397) ^ IsUnknown.GetHashCode();
         return(result);
     }
 }