how to add a number to an ienumerable in c# code example Example: add to ienumerable List<T> test = new List<T>(); test.Add(new T());