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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (split_ != null)
            {
                hash ^= Split.GetHashCode();
            }
            if (networkSettings_ != null)
            {
                hash ^= NetworkSettings.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     if (Category != null)
     {
         return(ColumnIndex.GetHashCode() ^ Category.GetHashCode());
     }
     return(ColumnIndex.GetHashCode() ^ Split.GetHashCode());
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if(BgColor != null)
                    hashCode = hashCode * 59 + BgColor.GetHashCode();

                if(BgColorArray != null)
                    hashCode = hashCode * 59 + BgColorArray.GetHashCode();

                if(BorderColor != null)
                    hashCode = hashCode * 59 + BorderColor.GetHashCode();

                if(BorderColorArray != null)
                    hashCode = hashCode * 59 + BorderColorArray.GetHashCode();

                if(Font != null)
                    hashCode = hashCode * 59 + Font.GetHashCode();

                if(Align != null)
                    hashCode = hashCode * 59 + Align.GetHashCode();

                if(AlignArray != null)
                    hashCode = hashCode * 59 + AlignArray.GetHashCode();

                if(NameLength != null)
                    hashCode = hashCode * 59 + NameLength.GetHashCode();

                if(NameLengthArray != null)
                    hashCode = hashCode * 59 + NameLengthArray.GetHashCode();

                if(Split != null)
                    hashCode = hashCode * 59 + Split.GetHashCode();

                if(BgColorSrc != null)
                    hashCode = hashCode * 59 + BgColorSrc.GetHashCode();

                if(BorderColorSrc != null)
                    hashCode = hashCode * 59 + BorderColorSrc.GetHashCode();

                if(AlignSrc != null)
                    hashCode = hashCode * 59 + AlignSrc.GetHashCode();

                if(NameLengthSrc != null)
                    hashCode = hashCode * 59 + NameLengthSrc.GetHashCode();

                return hashCode;
            }
        }