I try to do static class, add to icollection but i got some issues i cant seem to overcome. that is how i get so i can pass a ICollection in the method? cause T is that say
If I understand correctly you want to add a IEnumerable to an empty collection.
IEnumerable
Wouldn't it be easier to just do:
ICollection collection = new List(GetIEnumerableOfMyObject());
Or even:
ICollection collection = GetIEnumerableOfMyObject().ToList();