public IMCollection <T> From(IEnumerable <T> source) { MCollection <T> mCollection = new MCollection <T>(); mCollection.AddRange(source); return(mCollection); }
public IMCollection <T> Filter(Predicate <T> aPredicate) { MCollection <T> newMCollection = new MCollection <T>(); ForEach(aPredicate, anItem => { newMCollection.Add(anItem); }); return(newMCollection); }