// 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);
// 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);