public FileMetaData cloneMetaDataObject() { FileMetaData retObj = new FileMetaData (this.filepath, this.owner); retObj.filesize = this.filesize; retObj.sharedwithclients = new List<string> (this.sharedwithclients); retObj.versionNumber = this.versionNumber; retObj.markedForDeletion = this.markedForDeletion; return retObj; }
public UserFile(string filepath, string owner) { this.filemetadata = new FileMetaData(filepath, owner); this.filecontent = new byte[0]; }