从documentation:什么interace为的System.Array类的运行时实现在.net中是什么意思?
[...] Array类实现了
System.Collections.Generic.IList<T>
,System.Collections.Generic.ICollection<T>
和System.Collections.Generic.IEnumerable<T>
通用接口。 实现在运行时提供给数组,因此对文档构建工具不可见。
这是提供给C#开发人员。我的意思是我可以提供运行时实现到任何类的接口吗?
文档只能拿你这一步,如果你想进一步挖掘,阅读源代码,https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/ Array.cs –
https://stackoverflow.com/q/11163297/17034 –
感谢@HansPassant。正是我需要的。 –