Custom List Implementation with CollectionBase

Hi. In this post I’ll show how to implement custom list in C#. Custom List Implementation with CollectionBase will be so easy.

CollectionBase

Before Starting

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.

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
Devamını Oku