现在的位置: 首页 > 综合 > 正文

泛型与反射

2011年03月05日 ⁄ 综合 ⁄ 共 681字 ⁄ 字号 评论关闭
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 [] - -

抱歉!评论已关闭.