コード例 #1
0
ファイル: UnlimitedInt.cs プロジェクト: mff-uk/exolutio
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         return((int)((IsInfinity.GetHashCode() * 397) ^ Value));
     }
 }
コード例 #2
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(IsInfinity ? IsInfinity.GetHashCode() : Value.GetHashCode());
 }