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 hashCode = (int)TypeEnum; hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NamespaceName != null ? NamespaceName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (GenericArguments != null ? GenericArguments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Attributes != null ? Attributes.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FullTypeName != null ? FullTypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ImplementedInterfaces != null ? ImplementedInterfaces.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Fields != null ? Fields.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Methods != null ? Methods.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Indexers != null ? Indexers.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Events != null ? Events.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Constructors != null ? Constructors.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NestedTypes != null ? NestedTypes.GetHashCode() : 0); return(hashCode); } }