Esempio n. 1
0
            public override int GetHashCode()
            {
                int value = 13;

                if (ModelIdentifier != null)
                {
                    value ^= 3 ^ ModelIdentifier.GetHashCode();
                }

                if (FieldIdentifier != null)
                {
                    value ^= 5 ^ FieldIdentifier.GetHashCode();
                }

                if (UiHint != null)
                {
                    value ^= 7 ^ UiHint.GetHashCode();
                }

                if (FieldType != null)
                {
                    value ^= 11 ^ GetTypeHashCode(FieldType);
                }

                return(value);
            }
        public override int GetHashCode()
        {
            int value = 13;

            if (ModelIdentifier != null)
            {
                value ^= ModelIdentifier.GetHashCode();
            }

            if (FieldIdentifier != null)
            {
                value ^= FieldIdentifier.GetHashCode();
            }

            if (MetadataKey != null)
            {
                value ^= MetadataKey.GetHashCode();
            }

            return(value);
        }