System.Collections.ArrayList.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : Object
return Object
        public virtual Object Clone()
        {
            Contract.Ensures(Contract.Result<Object>() != null);
            ArrayList la = new ArrayList(_size);
            la._size = _size;
            la._version = _version;
            Array.Copy(_items, 0, la._items, 0, _size);
            return la;
        }

Usage Example

Example #1
0
        public Gfa(ArrayList X, int S, int S0, ArrayList F, ArrayList[,] I)
        {
            setType(TYPE.Gfa);

            this.X = (ArrayList)X.Clone();
            if (!X.Contains(EPSILON))
                this.X.Add(EPSILON);

            this.Read = (ArrayList)X.Clone();
            this.S = S;
            this.S0 = S0;
            this.F = (ArrayList)F.Clone();
            InitI(I);
        }
All Usage Examples Of System.Collections.ArrayList::Clone