private EnumerableInterfaceDescriptor(Type type, EnumerableInterfaceKind kind, bool isReadOnly, Type elementType) { Type = type; Kind = kind; IsReadOnly = isReadOnly; ElementType = elementType; HasGenericParameters = ElementType.IsGenericParameter; }
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; }
static void AddType(Type type, EnumerableInterface enumerableInterface, EnumerableInterfaceKind enumerableInterfaceKind, bool isReadOnly, Type typeToBuild) { Types.Add(type, new SupportedEnumerableTypes(type, enumerableInterface, enumerableInterfaceKind, isReadOnly, typeToBuild)); }