111,126
社区成员
发帖
与我相关
我的任务
分享
class Class1
{
public int[] myArray = new int[100];
public int this[int index]
{
get
{
if (index < 0 || index >= 100)
return 0;
else
return myArray[index];
}
set
{
if (!(index < 0 || index >= 100))
myArray[index] = value;
}
}
}
class Class1
{
public static string[] a =null;
}
class Class1
{
public static string[] a;
}
class Program
{
static void Main()
{
Class1.a = 从数据库中读入;
}
}class Program
{
public static string[] a;
static void Main()
{
a = new string[] { "abc", "123", "其他", };
}
}public static string[] a;