Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + Extent.GetHashCode();
            hash = (hash * 7) + Message.GetHashCode();
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = -1070376209;

            hashCode = hashCode * -1521134295 + Location.GetHashCode();
            hashCode = hashCode * -1521134295 + Extent.GetHashCode();
            return(hashCode);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Extent.GetHashCode();
         hashCode = (hashCode * 397) ^ StartLinePosition.GetHashCode();
         hashCode = (hashCode * 397) ^ EndLinePosition.GetHashCode();
         hashCode = (hashCode * 397) ^ (NormalizedFilePath?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemple #4
0
        public void ExtentGetHashCodeTest()
        {
            Extent e = new Extent(3, 5, 7, 9);

            Assert.AreEqual(2136750625, e.GetHashCode());
        }
Exemple #5
0
 public override int GetHashCode()
 {
     return(Tag.GetHashCode() ^ Extent.GetHashCode() ^ IsCollapsed.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(_minimum.GetHashCode() ^ _maximum.GetHashCode() ^ _extent.GetHashCode());
 }
Exemple #7
0
 public override int GetHashCode()
 {
     unchecked {
         return((Extent.GetHashCode() * 397) ^ Classification.GetHashCode());
     }
 }