Hello. I want to have something like this:
CollectionCIass<int> numbers = new CollectionCIass<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
but I don't know how to implement this collection.
I can do either like this:
internal class CollectionCIass : System.Collections.Generic.IList<int>
but then I can't declare variable like CollectionCIass<int> numbers = new CollectionCIass<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
I need to declare it like
CollectionCIass numbers = new CollectionCIass { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
but I want to specify type in parenthesis.