泛型与反射
Type | ToString() | ContainsGenericParameters | GenericParameterAttributes | GenericParameterPosition | IsGenericType |
---|---|---|---|---|---|
Dictionary<,> | Dictionary`2[TKey,TValue] | Y | - | - | Y |
< | Tkey | Y | None | 0 | N |
> | Tvalue | Y | None | 1 | N |
Dictionary<string,int> | Dictionary`2[String,Int32] | N | - | - | Y |
<string | String | N | - | - | N |
int> | Int32 | N | - | - | N |
Type | IsGenericParameter | IsGenericTypeDefinition | GetGenericArguments() | GetGenericParameterConstraints() | GetGenericTypeDefinition() |
---|---|---|---|---|---|
Dictionary<,> | N | Y | [TKey,TValue] | - | Dictionary`2[TKey,TValue] |
< | Y | N | [] | [] | - |
> | Y | N | [] | [] | - |
Dictionary<string,int> | N | N | [String,Int32] | - | Dictionary`2[TKey,TValue] |
<string | N | N | [] | - | - |
int> | N | N | [] | - | - |