示例#1
0
 public override bool Equals(object obj)
 {
     if (obj is NamespaceWrapper)
     {
         NamespaceWrapper other = obj as NamespaceWrapper;
         return((modef.Equals(other.modef)) && (@namespace == other.@namespace));
     }
     return(base.Equals(obj));
 }
 public void VisitTypeDefinitionCollection(TypeDefinitionCollection types)
 {
     foreach (TypeDefinition typedef in types)
     {
         if ((typedef.Attributes & TypeAttributes.VisibilityMask) <= TypeAttributes.Public)
         {
             NamespaceWrapper wrapper = new NamespaceWrapper(typedef.Module, typedef.Namespace);
             AppendNode(typedef.Module, wrapper, true);
             AppendNode(wrapper, typedef, true);
         }
     }
 }
示例#3
0
 public static Icons GetNamespaceImageIndex(NamespaceWrapper @namespace)
 {
     return Icons.PublicNamespace;
 }
示例#4
0
 public static Icons GetNamespaceImageIndex(NamespaceWrapper @namespace)
 {
     return(Icons.PublicNamespace);
 }
 public void VisitTypeDefinitionCollection(TypeDefinitionCollection types)
 {
     foreach (TypeDefinition typedef in types)
     {
         if ((typedef.Attributes & TypeAttributes.VisibilityMask) <= TypeAttributes.Public)
         {
             NamespaceWrapper wrapper = new NamespaceWrapper(typedef.Module, typedef.Namespace);
             AppendNode(typedef.Module, wrapper, true);
             AppendNode(wrapper, typedef, true);
         }
     }
 }