Ejemplo n.º 1
0
        public bool AddAll(Java.Util.ICollection <T> collection)
        {
            var iterator = collection.Iterator();

            while (iterator.HasNext)
            {
                this.collection.Add(iterator.Next());
            }
            return(true);
        }
Ejemplo n.º 2
0
        public bool RemoveAll(Java.Util.ICollection <object> other)
        {
            var iterator = other.Iterator();

            while (iterator.HasNext)
            {
                if (!this.collection.Remove((T)iterator.Next()))
                {
                    return(false);
                }
            }
            return(true);
        }