using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StructParameter
{
class Program
{
static void Main(string[] args)
{
A[] aa=new A[100];
int length = aa.Length;//访问静态变量的速度比访问object快很多
for (int i = 0; i < length; i++)
{
Console.WriteLine(i);
}
}
}
//定义一个类
public class A
{
//必须与类名相同,否则报错
A[] a = new A[100];
}
}