不知道这个索引错在哪里了?
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
MyClass m = new MyClass();
m[0] = 1;
m[2] = 2;
m[3] = 3;
Console.ReadKey();
}
}
class MyClass
{
public int this[int index]
{
get
{
return this[index];
}
set
{
this[index] = value;
}
}
}
}