public override int GetHashCode() { unchecked { int result = SlotId; result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ ClockRate.GetHashCode(); result = (result * 397) ^ ChannelCount.GetHashCode(); result = (result * 397) ^ SamplesPerFrame.GetHashCode(); result = (result * 397) ^ BitsPerSample.GetHashCode(); return(result); } }
public override int GetHashCode() { int hash = 1; if (Width != 0) { hash ^= Width.GetHashCode(); } if (Height != 0) { hash ^= Height.GetHashCode(); } if (ChannelCount != 0) { hash ^= ChannelCount.GetHashCode(); } if (Raw.Length != 0) { hash ^= Raw.GetHashCode(); } hash ^= rois_.GetHashCode(); if (SolutionId != 0) { hash ^= SolutionId.GetHashCode(); } if (ErrorId != 0) { hash ^= ErrorId.GetHashCode(); } if (Key.Length != 0) { hash ^= Key.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }