public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 23 + Fields.GetHashCode();
                hash = hash * 23 + Properties.GetHashCode();
                hash = hash * 23 + Methods.GetHashCode();
                hash = hash * 23 + Constructors.GetHashCode();
                hash = hash * 23 + Gettable.GetHashCode();
                hash = hash * 23 + Settable.GetHashCode();
                hash = hash * 23 + Indexers.GetHashCode();
                hash = hash * 23 + Events.GetHashCode();

                hash = hash * 23 + Inherited.GetHashCode();
                hash = hash * 23 + Targeted.GetHashCode();
                hash = hash * 23 + NonTargeted.GetHashCode();
                hash = hash * 23 + Public.GetHashCode();
                hash = hash * 23 + NonPublic.GetHashCode();
                hash = hash * 23 + ReadOnly.GetHashCode();
                hash = hash * 23 + WriteOnly.GetHashCode();
                hash = hash * 23 + Extensions.GetHashCode();
                hash = hash * 23 + Operators.GetHashCode();
                hash = hash * 23 + Conversions.GetHashCode();
                hash = hash * 23 + Parameters.GetHashCode();
                hash = hash * 23 + Obsolete.GetHashCode();
                hash = hash * 23 + OpenConstructedGeneric.GetHashCode();
                hash = hash * 23 + TypeInitializers.GetHashCode();

                return(hash);
            }
        }
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 23 + NoControlInput.GetHashCode();
                hash = hash * 23 + SingleControlInput.GetHashCode();
                hash = hash * 23 + MultipleControlInputs.GetHashCode();

                hash = hash * 23 + NoValueInput.GetHashCode();
                hash = hash * 23 + SingleValueInput.GetHashCode();
                hash = hash * 23 + MultipleValueInputs.GetHashCode();

                hash = hash * 23 + NoControlOutput.GetHashCode();
                hash = hash * 23 + SingleControlOutput.GetHashCode();
                hash = hash * 23 + MultipleControlOutputs.GetHashCode();

                hash = hash * 23 + NoValueOutput.GetHashCode();
                hash = hash * 23 + SingleValueOutput.GetHashCode();
                hash = hash * 23 + MultipleValueOutputs.GetHashCode();

                hash = hash * 23 + Self.GetHashCode();
                hash = hash * 23 + Events.GetHashCode();
                hash = hash * 23 + Literals.GetHashCode();
                hash = hash * 23 + Variables.GetHashCode();
                hash = hash * 23 + Members.GetHashCode();
                hash = hash * 23 + Nesters.GetHashCode();
                hash = hash * 23 + Expose.GetHashCode();
                hash = hash * 23 + Obsolete.GetHashCode();
                hash = hash * 23 + AllowSelfNestedGraph.GetHashCode();

                hash = hash * 23 + (CompatibleInputType?.GetHashCode() ?? 0);
                hash = hash * 23 + (CompatibleOutputType?.GetHashCode() ?? 0);

                hash = hash * 23 + GraphHashCode;

                return(hash);
            }
        }
示例#3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 23 + Matching.GetHashCode();

                foreach (var type in types)
                {
                    if (type != null)
                    {
                        hash = hash * 23 + type.GetHashCode();
                    }
                }

                hash = hash * 23 + Value.GetHashCode();
                hash = hash * 23 + Reference.GetHashCode();
                hash = hash * 23 + Classes.GetHashCode();
                hash = hash * 23 + Interfaces.GetHashCode();
                hash = hash * 23 + Structs.GetHashCode();
                hash = hash * 23 + Enums.GetHashCode();
                hash = hash * 23 + Delegates.GetHashCode();
                hash = hash * 23 + Public.GetHashCode();
                hash = hash * 23 + NonPublic.GetHashCode();
                hash = hash * 23 + Abstract.GetHashCode();
                hash = hash * 23 + Generic.GetHashCode();
                hash = hash * 23 + OpenConstructedGeneric.GetHashCode();
                hash = hash * 23 + Static.GetHashCode();
                hash = hash * 23 + Sealed.GetHashCode();
                hash = hash * 23 + Nested.GetHashCode();
                hash = hash * 23 + Primitives.GetHashCode();
                hash = hash * 23 + Object.GetHashCode();
                hash = hash * 23 + NonSerializable.GetHashCode();
                hash = hash * 23 + Obsolete.GetHashCode();
                hash = hash * 23 + GenericParameterAttributeFlags.GetHashCode();

                return(hash);
            }
        }