[C#]是.NET中每种数组类型的数组类基类型? [英] [C#] is the array class base type of every array type in .NET ?

查看:99
本文介绍了[C#]是.NET中每种数组类型的数组类基类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Array类是如何工作的,它是.NET中每个数组类型的基类吗?



我尝试过:



在CodeProject.com中提出问题

I was wondering how the Array class is working and is it the base class of every array type in .NET ?

What I have tried:

Asking question here in CodeProject.com

推荐答案

数组类实现了一些接口而不是从基类继承。



这可以在MSDN文档中轻松阅读:

参考资料来源 [ ^ ]



The array class implements some interfaces rather than inheriting from a base class.

This can easily be read in the MSDN documentation:
Reference Source[^]

public abstract class Array : ICloneable, IList, IStructuralComparable, IStructuralEquatable
{
   ...
}



但是,作为.Net中的所有类,数组类是继承的来自对象类:

参考源 [ ^ ]


But, as all classes in .Net, the array class is inheriting from the object class:
Reference Source[^]

The Object is the root class for all object in the CLR System. Object 


这篇关于[C#]是.NET中每种数组类型的数组类基类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆