コード例 #1
0
ファイル: MyFile.cs プロジェクト: elyzinger/practice1505
 public MyFile(string filePath, int fileSize, bool readOnly, bool archiveFile) : this(filePath)
 {
     FileSize      = fileSize;
     IsReadOnly    = readOnly;
     IsArchiveFile = archiveFile;
     IsInfected    = VirusScanner.IsFileInfected(this);
 }
コード例 #2
0
ファイル: MyFile.cs プロジェクト: Orwex/OOP_Project_Sql
        public MyFile(string FilePath, int fileSize, bool isReadOnly, bool isArchive) : this(FilePath)
        {
            FileSize   = fileSize;
            IsReadOnly = isReadOnly;
            IsArchive  = isArchive;

            IsInfected = VirusScanner.IsFileInfected(this);
        }
コード例 #3
0
 public MyFile(string filePath, int size, bool isReadOnly, bool isArchive)
 {
     this.filePath   = filePath;
     this.size       = size;
     this.isReadOnly = isReadOnly;
     this.isArchive  = isArchive;
     this.isInfected = VirusScanner.IsFileInfected(this);
     if (this.IsInfected)
     {
         throw new InfectedFileDetectedException(this.FilePath);
     }
     if (paths == null)
     {
         paths = new List <string>();
     }
     paths.Add(filePath);
 }