namespace ConsoleApplication1{ 
class Program 
{ static void Main(string[] args) 

cheliang a = new cheliang(); 
a.jia("汽车"); 
a.jia("摩托车"); 
for (int i = 0; i < a.Count;i++ ) 

Console.WriteLine("位置 = {0} 名字 = {1}",i,a[i]); 

Console.ReadLine(); 


class cheliang : CollectionBase 

public void jia(string s) 

List.Add(s); 

public void shanchu(int a) 

List.Remove(a); 

public string this[int suoyin] 

get 

return (string)this[suoyin]; 

set 

this[suoyin] = value; 


}
}
前辈们这个通过索引为啥不对呢