public TypeShape() { TypeHierarchy = new TypeHierarchy(); NestedTypes = Sets.NewHashSet <ITypeName>(); Delegates = Sets.NewHashSet <IDelegateTypeName>(); EventHierarchies = Sets.NewHashSet <IMemberHierarchy <IEventName> >(); Fields = Sets.NewHashSet <IFieldName>(); MethodHierarchies = Sets.NewHashSet <IMemberHierarchy <IMethodName> >(); PropertyHierarchies = Sets.NewHashSet <IMemberHierarchy <IPropertyName> >(); }
public override int GetHashCode() { unchecked { return((TypeHierarchy.GetHashCode() * 397) ^ NestedTypes.GetSetHashCode() ^ Delegates.GetSetHashCode() ^ EventHierarchies.GetSetHashCode() ^ Fields.GetSetHashCode() ^ MethodHierarchies.GetSetHashCode() ^ PropertyHierarchies.GetSetHashCode()); } }
private bool Equals(TypeHierarchy other) { return(Equals(Implements, other.Implements) && Equals(Extends, other.Extends) && Equals(Element, other.Element)); }