Exemplo n.º 1
0
        public IMCollection <T> From(IEnumerable <T> source)
        {
            MCollection <T> mCollection = new MCollection <T>();

            mCollection.AddRange(source);
            return(mCollection);
        }
Exemplo n.º 2
0
        public IMCollection <T> Filter(Predicate <T> aPredicate)
        {
            MCollection <T> newMCollection = new MCollection <T>();

            ForEach(aPredicate, anItem => {
                newMCollection.Add(anItem);
            });
            return(newMCollection);
        }