public static void Main()
Console.WriteLine("Hello World");
ListOfGen<string> MyListOfStrings = new ListOfGen<string>(4);
Console.WriteLine(MyListOfStrings);
MyListOfStrings.Add("YESSSss");
MyListOfStrings.Add("QUEEEEEN");
MyListOfStrings.Add("QUEEEEEN");
MyListOfStrings.Add("QUEEEEEN");
MyListOfStrings.Add("QUEEEEEN");
MyListOfStrings.Add("QUEEEEEN");
Console.WriteLine(MyListOfStrings.count);
public class ListOfGen<T>
public int collectionCapacity;
public int count {get;set;}
this.collection = new T[i];
if(count <= collection.Length)
collection[count] = item;
Console.WriteLine("you've added too many items!");