Ejemplo n.º 1
0
        public XList <T> FindAll(Predicate <T> match)
        {
            if (match == null)
            {
                throw new InvalidOperationException("Argument null");
            }
            Contract.EndContractBlock();

            XList <T> list = new XList <T>();

            for (int i = 0; i < _size; i++)
            {
                if (match(_items[i]))
                {
                    list.Add(_items[i]);
                }
            }
            return(list);
        }
Ejemplo n.º 2
0
 public void Add(T item)
 {
     lock (_root) {
         _list.Add(item);
     }
 }