Clone() public method

Create a new TarHeader that is a copy of the current instance.
public Clone ( ) : object
return object
コード例 #1
0
        /// <summary>
        /// Construct a TarEntry using the <paramref name="header">header</paramref> provided
        /// </summary>
        /// <param name="header">Header details for entry</param>
        public TarEntry(TarHeader header)
        {
            if (header == null) {
                throw new ArgumentNullException("TarHeader");
            }

            this.header = (TarHeader)header.Clone();
        }
コード例 #2
0
ファイル: TarEntry.cs プロジェクト: barbequeSir/Tech
        /// <summary>
        /// Construct a TarEntry using the <paramref name="header">header</paramref> provided
        /// </summary>
        /// <param name="header">Header details for entry</param>
        public TarEntry(TarHeader header)
        {
            if (header == null)
            {
                throw new ArgumentNullException("header");
            }

            this.header = (TarHeader)header.Clone();
        }