Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Section != null ? Section.GetHashCode() : 0) * 397) ^ SpecialIndex.GetHashCode());
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (BeginSection != null ? BeginSection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BeginOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ (EndSection != null ? EndSection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EndOffset.GetHashCode();
         return(hashCode);
     }
 }