NAnt.Core.DirScannerStringCollection.Clone C# (CSharp) Method

Clone() public method

Creates a shallow copy of the DirScannerStringCollection.
public Clone ( ) : object
return object
        public override object Clone()
        {
            string[] strings = new string[Count];
            CopyTo(strings, 0);
            DirScannerStringCollection clone = new DirScannerStringCollection(CaseSensitive);
            clone.AddRange(strings);
            return clone;
        }