Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Shorthand.Length != 0)
            {
                hash ^= Shorthand.GetHashCode();
            }
            if (DefaultValue.Length != 0)
            {
                hash ^= DefaultValue.GetHashCode();
            }
            if (Usage.Length != 0)
            {
                hash ^= Usage.GetHashCode();
            }
            if (Required != false)
            {
                hash ^= Required.GetHashCode();
            }
            if (IncludeNested != false)
            {
                hash ^= IncludeNested.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() * 71
            + Shorthand.GetHashCode() * 73);
 }