091118 T 数组的继承

Array T[] IList IList<T>
它们之间的关系如下
T[] : Array, IList<T>, ICollection<T>, IEnumerable<T>       --这层的关系比较隐含
Array : ICloneable, IList, ICollection, IEnumerable

如下:
typeof(string[]).GetInterfaces()
结果:
{System.Type[7]}
    [0]: {Name = "ICloneable" FullName = "System.ICloneable"}
    [1]: {Name = "IList" FullName = "System.Collections.IList"}
    [2]: {Name = "ICollection" FullName = "System.Collections.ICollection"}
    [3]: {Name = "IEnumerable" FullName = "System.Collections.IEnumerable"}
    [4]: {Name = "IList`1" FullName = "System.Collections.Generic.IList`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"}
    [5]: {Name = "ICollection`1" FullName = "System.Collections.Generic.ICollection`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"}
    [6]: {Name = "IEnumerable`1" FullName = "System.Collections.Generic.IEnumerable`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"}

转载于:https://www.cnblogs.com/zgynhqf/archive/2009/11/21/1607747.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值