ICSharpCode.SharpZipLib.Zip.ZipEntry.Clone C# (CSharp) Method

Clone() public method

Creates a copy of this zip entry.
public Clone ( ) : object
return object
        public object Clone()
        {
            var result = (ZipEntry)this.MemberwiseClone();

            // Ensure extra data is unique if it exists.
            if (extra != null) {
                result.extra = new byte[extra.Length];
                Array.Copy(extra, 0, result.extra, 0, extra.Length);
            }

            return result;
        }

Usage Example

Example #1
0
			public ZipUpdate(UpdateCommand command, ZipEntry entry)
			{
				command_ = command;
				entry_ = ( ZipEntry )entry.Clone();
			}
All Usage Examples Of ICSharpCode.SharpZipLib.Zip.ZipEntry::Clone