If you want to implement the custom collection class then you may need to use the coding below:
Code:
using System;
using System.Collections;
public class First: CollectionBase
{
public First this[int i]
{
get
{
return ((First)(List[i]));
}
set
{
List[i] = value;
}
}
public bool Contains(First first)
{
return List.Contains(first);
}
public int Add(First First)
{
return List.Add(First);
}
public void Insert(int i, First first)
{
List.Insert(i, first);
}
public void Remove(First first)
{
List.Remove(First);
}
}
Bookmarks