예제 #1
0
        //  if implementing, move these to extensions class
        //
        //public FileShim ExeFile { get { return this.File(this.GetAssemblyFile()); } }
        //public FolderShim Folder(SpecialDir specialDir, string subDirectory) { return this.Folder(this.GetSpecialDir(specialDir, subDirectory)); }
        //public FolderShim LocalAppDataDir(string subDirectory) { return this.Folder(SpecialDir.LocalApplicationData, subDirectory); }
        //public FolderShim ExeFolder { get { return this.Folder(this.GetAssemblyDir()); } }

        public string GetSpecialDir(SpecialDir specialDir, string subDirectory) 
            => Environment.GetFolderPath((Environment.SpecialFolder)specialDir).Bslash(subDirectory);
예제 #2
0
        //  if implementing, move these to extensions class
        //
        //public FileShim ExeFile { get { return this.File(this.GetAssemblyFile()); } }
        //public FolderShim Folder(SpecialDir specialDir, string subDirectory) { return this.Folder(this.GetSpecialDir(specialDir, subDirectory)); }
        //public FolderShim LocalAppDataDir(string subDirectory) { return this.Folder(SpecialDir.LocalApplicationData, subDirectory); }
        //public FolderShim ExeFolder { get { return this.Folder(this.GetAssemblyDir()); } }

        public string GetSpecialDir(SpecialDir specialDir, string subDirectory)
        => Environment.GetFolderPath((Environment.SpecialFolder)specialDir).Bslash(subDirectory);