示例#1
0
 private EnumerableInterfaceDescriptor(Type type, EnumerableInterfaceKind kind, bool isReadOnly, Type elementType)
 {
     Type                 = type;
     Kind                 = kind;
     IsReadOnly           = isReadOnly;
     ElementType          = elementType;
     HasGenericParameters = ElementType.IsGenericParameter;
 }
示例#2
0
 internal SupportedEnumerableTypes(Type type, EnumerableInterface enumerableInterface, EnumerableInterfaceKind enumerableInterfaceKind, bool isReadOnly, Type typeToBuild)
 {
     this.Type       = type;
     this.IsReadOnly = isReadOnly;
     this.EnumerableInterfaceKind = enumerableInterfaceKind;
     this.EnumerableInterface     = enumerableInterface;
     this.TypeToBuild             = typeToBuild;
 }
示例#3
0
 static void AddType(Type type, EnumerableInterface enumerableInterface, EnumerableInterfaceKind enumerableInterfaceKind, bool isReadOnly, Type typeToBuild)
 {
     Types.Add(type, new SupportedEnumerableTypes(type, enumerableInterface, enumerableInterfaceKind, isReadOnly, typeToBuild));
 }