예제 #1
0
 public static DirectoryInfo Directory(this Environment.SpecialFolder folder,
                                       string relativeSubDirectory)
 {
     return(Path.Combine(
                folder.Directory().FullName,
                relativeSubDirectory.TrimStart("\\"))
            .AsDirectory());
 }
 public static FileInfo GetFile(this Environment.SpecialFolder folder, string relativePath)
 {
     return(folder.Directory().GetFile(relativePath));
 }
 public static DirectoryInfo Directory(this Environment.SpecialFolder folder,
                                       string relativeSubDirectory)
 {
     return(folder.Directory().GetSubDirectory(relativeSubDirectory));
 }
예제 #4
0
 public static FileInfo GetFile(this Environment.SpecialFolder folder, string relativePath)
 {
     return(Path.Combine(folder.Directory().FullName, relativePath.TrimStart("\\")).AsFile());
 }