Hi JB,

very often I need a copy of one of your collections, can I get a
ToArray() method?

namespace Mono.Collections.Generic {

        public class Collection<T> : IList<T>, IList {

                internal T [] items;
                internal int size;
                int version;

        public T[] ToArray()
        {
            T[] destinationArray = new T[this.size];
            Array.Copy(this.items, 0, destinationArray, 0, this.size);
            return destinationArray;
        }

Thanks

Jan

-- 
--
mono-cecil

Reply via email to