Hi. In this post I’ll show how to implement custom list in C#. Custom List Implementation with CollectionBase will be so easy.
Maybe you should check this link to get some informations.
Let inherit the CollectionBase Class. In this example we will use its members.
Create New Class with CollectionBase
I created a class like this.
class MyList<T> : CollectionBase
If you know Generics you’ll understand why I used Type. This class will have some methods. Let’s start coding.
Return the Instance as an array
If you have used lists