Пример #1
0
 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> >();
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((TypeHierarchy.GetHashCode() * 397) ^
                NestedTypes.GetSetHashCode() ^
                Delegates.GetSetHashCode() ^
                EventHierarchies.GetSetHashCode() ^
                Fields.GetSetHashCode() ^
                MethodHierarchies.GetSetHashCode() ^
                PropertyHierarchies.GetSetHashCode());
     }
 }
Пример #3
0
 private bool Equals(TypeHierarchy other)
 {
     return(Equals(Implements, other.Implements) && Equals(Extends, other.Extends) &&
            Equals(Element, other.Element));
 }