/// <summary> /// Creates a shallow copy of the <see cref="DirScannerStringCollection" />. /// </summary> /// <returns> /// A shallow copy of the <see cref="DirScannerStringCollection" />. /// </returns> public override object Clone() { string[] strings = new string[Count]; CopyTo(strings, 0); DirScannerStringCollection clone = new DirScannerStringCollection(); clone.AddRange(strings); return(clone); }
/// <summary> /// Creates a shallow copy of the <see cref="DirScannerStringCollection" />. /// </summary> /// <returns> /// A shallow copy of the <see cref="DirScannerStringCollection" />. /// </returns> public override object Clone() { string[] strings = new string[Count]; CopyTo(strings, 0); DirScannerStringCollection clone = new DirScannerStringCollection(CaseSensitive); clone.AddRange(strings); return clone; }