示例#1
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="Object"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = ((XValue != null) ? XValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ((YValue != null) ? YValue.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = XValue.GetHashCode();
         hashCode = (hashCode * 397) ^ YValue.GetHashCode();
         hashCode = (hashCode * 397) ^ ZValue.GetHashCode();
         hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     // ReSharper disable once NonReadonlyMemberInGetHashCode
     return(XValue.GetHashCode());
 }
示例#4
0
 public override int GetHashCode()
 {
     return(XValue.GetHashCode());
 }