Пример #1
0
        public object Clone()
        {
            var item = new FileItem {
                Index                 = Index,
                Filepath              = Filepath,
                LengthCompressed      = LengthCompressed,
                LengthCompressedAlign = LengthCompressedAlign,
                LengthUnCompressed    = LengthUnCompressed,
                Flags                 = Flags,
                DataOffset            = DataOffset,
                Cycle                 = Cycle,
                State                 = State,
                NewFilepath           = NewFilepath
            };

            if (FileData != null)
            {
                item.FileData = FileData.Clone() as byte[];
            }

            return(item);
        }