コード例 #1
0
 public override int GetHashCode()
 {
     return(ElementNumber.GetHashCode()
            ^ SerialNumber.GetHashCode()
            ^ DmxRangeMin.GetHashCode()
            ^ DmxRangeMax.GetHashCode()
            ^ (Name?.GetHashCode() ?? 0));
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Number.GetHashCode();
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)SerialNumber;
         hashCode = (hashCode * 397) ^ DmxRangeMin.GetHashCode();
         hashCode = (hashCode * 397) ^ DmxRangeMax.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ LibraryCount.GetHashCode();
         hashCode = (hashCode * 397) ^ ElementCount.GetHashCode();
         return(hashCode);
     }
 }