登录 注册 搜索 帮助
IL_0170: ldloc.2
IL_0171: ldloc.s i1
IL_0173: box [mscorlib]System.Int32
IL_0178: callvirt instance int32 CSharpRecipes.Generics/StandardClass::AddItem(object)
// 存储返回的字符串.
string sHolder;
// 发生错误CS0266:
// Cannot implicitly convert type 'object' to 'string'…
sHolder = (string)C.GetItem(1);
int iHolder;
// 不需要再进行转换
sHolder = gC.GetItem(1);
// 尝试把字符串变为整数.将出现
// 错误CS0029: Cannot implicitly convert type 'string' to 'int'
There are 1 instances of CSharpRecipes.Generics+StandardClass which contains 0 items of type System.Object[]...
There are 2 instances of CSharpRecipes.Generics+StandardClass which contains 0 items of type System.Object[]...
There are 3 instances of CSharpRecipes.Generics+StandardClass which contains 0 items of type System.Object[]...
There are 1 instances of CSharpRecipes.Generics+GenericClass`1[System.Boolean] which contains 0 items of type System.Boolean[]...
There are 1 instances of CSharpRecipes.Generics+GenericClass`1[System.Int32] which contains 0 items of type System.Int32[]...
There are 1 instances of CSharpRecipes.Generics+GenericClass`1[System.String] which contains 0 items of type System.String[]...
There are 2 instances of CSharpRecipes.Generics+GenericClass`1[System.String] which contains 0 items of type System.String[]...
发送短消息
查看公共资料
查找该会员全部帖子
状态: 离线
ArrayList类成员
等价的泛型List类成员
Capacity 属性
Capacity属性
Count属性
IsFixedSize属性
((IList)myList).IsFixedSize
IsReadOnly属性
((IList)myList).IsReadOnly
IsSynchronized属性
((IList)myList).IsSynchronized
Item属性
SyncRoot属性
((IList)myList).SyncRoot
Adapter 静态方法
N/A
Add 方法
Add方法
AddRange方法
AsReadOnly方法
BinarySearch方法
Clear方法
Clone方法
Getrange(0, numbers.Count)
Contains方法
ConvertAll方法
CopyTo方法
Exists方法
Find方法
FindAll方法
FindIndex方法
FindLast方法
FindLastIndex方法
ForEach方法
FixedSize 静态方法