Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     return(17 * Name.GetHashCode()
            + 23 * Label.GetHashCode()
            + 31 * Documentation.GetHashCode()
            + Enumerable.Aggregate(Parameters, 37, (current, element) => current + element.GetHashCode()));
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            hash ^= apis_.GetHashCode();
            if (documentation_ != null)
            {
                hash ^= Documentation.GetHashCode();
            }
            if (quota_ != null)
            {
                hash ^= Quota.GetHashCode();
            }
            if (authentication_ != null)
            {
                hash ^= Authentication.GetHashCode();
            }
            if (usage_ != null)
            {
                hash ^= Usage.GetHashCode();
            }
            hash ^= endpoints_.GetHashCode();
            hash ^= monitoredResources_.GetHashCode();
            if (monitoring_ != null)
            {
                hash ^= Monitoring.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }