コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((R1?.GetHashCode() ?? 0) * 397) ^ (R2?.GetHashCode() ?? 0));
     }
 }
コード例 #2
0
            public override int GetHashCode()
            {
                var hashCode = 0;

                hashCode = hashCode * 31 + R1.GetHashCode();
                hashCode = hashCode * 31 + R2.GetHashCode();
                hashCode = hashCode * 31 + Parallel.GetHashCode();
                return(hashCode);
            }
コード例 #3
0
ファイル: Reactors.cs プロジェクト: t-sahin/arc-graphics
        public override int GetHashCode()
        {
            int hash = 1;

            if (R1 != 0)
            {
                hash ^= R1.GetHashCode();
            }
            if (R2 != 0)
            {
                hash ^= R2.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
 public static bool operator !=(Rectangle R1, Rectangle R2)
 {
     return(R1.GetHashCode() != R2.GetHashCode());
 }
コード例 #5
0
 public override int GetHashCode()
 {
     return(R1.GetHashCode() ^ R2.GetHashCode() ^ C.GetHashCode());
 }