标签:
class A :CollectionBase
{
public void add(B b)
{
List.Add(b);
}
public void remove(B b)
{
List.Remove(b);
}
public B this[int index]
{
set
{
List[index] = value;
}
get
{
return (B)List[index];
}
}
}
标签:
原文地址:http://www.cnblogs.com/weloveshare/p/5295137.html