I don’t really know how to create my own collection class. I’ve searched around the net but I’m not sure what the declaration should look like.
Should I define the class like this? Advice and hints are appreciated!
namespace Myprog
{
class mylist<t>
{
//Do something
}
}
To have a collection like a List you should implement IEnumerable interface. Just a quick google search and a nice result: Creating a Custom Generic Collection
If you just want some more knowledge about generics in .NET look at this MSDN Generics (C#) site and check links from there.