Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (BasePath.Length != 0)
            {
                hash ^= BasePath.GetHashCode();
            }
            if (ModelType != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (ModelPlatform.Length != 0)
            {
                hash ^= ModelPlatform.GetHashCode();
            }
            if (modelVersionPolicy_ != null)
            {
                hash ^= ModelVersionPolicy.GetHashCode();
            }
            hash ^= VersionLabels.GetHashCode();
            if (loggingConfig_ != null)
            {
                hash ^= LoggingConfig.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 public override int GetHashCode()
 {
     return((BasePath == null ? 0 : BasePath.GetHashCode()) ^ Name.GetHashCode());
 }