示例#1
0
        public override int GetHashCode()
        {
            int result = ProviderType != null?ProviderType.GetHashCode() : 0;

            result = 29 * result + (DataTypeName != null ? DataTypeName.GetHashCode() : 0);
            result = 29 * result + NumericPrecision.GetHashCode();
            result = 29 * result + NumericScale.GetHashCode();
            result = 29 * result + ColumnSize.GetHashCode();
            result = 29 * result + IsLong.GetHashCode();
            return(result);
        }
示例#2
0
 void CalcHashCode()
 {
     unchecked
     {
         _hashCode = 639348056;
         _hashCode = _hashCode * -1521134295 + (ToType == null ? 0 : ToType.GetHashCode());
         _hashCode = _hashCode * -1521134295 + (FieldType == null ? 0 : FieldType.GetHashCode());
         _hashCode = _hashCode * -1521134295 + (ProviderFieldType == null ? 0 : ProviderFieldType.GetHashCode());
         _hashCode = _hashCode * -1521134295 + (DataTypeName == null ? 0 : DataTypeName.GetHashCode());
         _hashCode = _hashCode * -1521134295 + (DataReaderType == null ? 0 : DataReaderType.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ColumnOrdinal;
         hashCode = (hashCode * 397) ^ (DataTypeName != null ? DataTypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode();
         hashCode = (hashCode * 397) ^ Generated.GetHashCode();
         hashCode = (hashCode * 397) ^ CaseSensitive.GetHashCode();
         return(hashCode);
     }
 }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ver != 0)
            {
                hash ^= Ver.GetHashCode();
            }
            if (DataTypeName.Length != 0)
            {
                hash ^= DataTypeName.GetHashCode();
            }
            if (DateTime.Length != 0)
            {
                hash ^= DateTime.GetHashCode();
            }
            if (samplingRate_ != null)
            {
                hash ^= SamplingRate.GetHashCode();
            }
            if (SequenceNumber.Length != 0)
            {
                hash ^= SequenceNumber.GetHashCode();
            }
            if (InstrumentationKey.Length != 0)
            {
                hash ^= InstrumentationKey.GetHashCode();
            }
            hash ^= Tags.GetHashCode();
            if (dataCase_ == DataOneofCase.Event)
            {
                hash ^= Event.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Message)
            {
                hash ^= Message.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Metric)
            {
                hash ^= Metric.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Exception)
            {
                hash ^= Exception.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Dependency)
            {
                hash ^= Dependency.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Availability)
            {
                hash ^= Availability.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.PageView)
            {
                hash ^= PageView.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Request)
            {
                hash ^= Request.GetHashCode();
            }
            hash ^= (int)dataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }