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