Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(7 * StartAddress.GetHashCode() ^ 31 * EndAddress.GetHashCode());
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + base.GetHashCode();
            hash = hash * 23 + Offset.GetHashCode();
            hash = hash * 23 + StartAddress.GetHashCode();
            hash = hash * 23 + EndAddress.GetHashCode();
            return(hash);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     if (_hashCode == null)
     {
         unchecked
         {
             _hashCode = ((StartAddress?.GetHashCode() ?? 0) * 397) ^ (EndAddress?.GetHashCode() ?? 0);
         }
     }
     return(_hashCode.Value);
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         var hashCode = StartAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ EndAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)SectionType;
         // ReSharper restore NonReadonlyMemberInGetHashCode
         return(hashCode);
     }
 }