示例#1
0
 internal TypeInfoTreeNode(Type type, ITypeInfoTreeNode parent)
 {
     Parent = parent;
     _type  = (type is TypeInfo) ? (TypeInfo)type : type.GetTypeInfo();
     foreach (Type t in type.GetNestedTypes())
     {
         _innerList.Add(new TypeInfoTreeNode(t, this));
     }
 }
示例#2
0
 bool ICollection <ITypeInfoTreeNode> .Remove(ITypeInfoTreeNode item)
 {
     throw new NotSupportedException();
 }
示例#3
0
 void IList <ITypeInfoTreeNode> .Insert(int index, ITypeInfoTreeNode item)
 {
     throw new NotSupportedException();
 }
示例#4
0
 int IList <ITypeInfoTreeNode> .IndexOf(ITypeInfoTreeNode item)
 {
     return(_innerList.IndexOf(item));
 }
示例#5
0
 bool ICollection <ITypeInfoTreeNode> .Contains(ITypeInfoTreeNode item)
 {
     return(_innerList.Contains(item));
 }
示例#6
0
 void ICollection <ITypeInfoTreeNode> .Add(ITypeInfoTreeNode item)
 {
     throw new NotSupportedException();
 }
示例#7
0
 int IList <ITypeInfoTreeNode> .IndexOf(ITypeInfoTreeNode item)
 {
     return((item != null && item is TypeInfoTreeNode) ? IndexOf((TypeInfoTreeNode)item) : -1);
 }
示例#8
0
 bool ICollection <ITypeInfoTreeNode> .Contains(ITypeInfoTreeNode item)
 {
     return(item != null && item is TypeInfoTreeNode && _innerList.Contains(item));
 }