public FeatureDirectoryTreeNode(FileSystemInfo location, string relativePathFromRoot, Feature feature)
 {
     this.OriginalLocation = location;
     this.OriginalLocationUrl = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
     this.Feature = feature;
 }
예제 #2
0
 public MarkdownTreeNode(FileSystemInfo location, string relativePathFromRoot, XElement markdownContent)
 {
     this.OriginalLocation = location;
     this.OriginalLocationUrl = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
     this.MarkdownContent = markdownContent;
 }
예제 #3
0
 public FolderDirectoryTreeNode(FileSystemInfo location, string relativePathFromRoot)
 {
     this.OriginalLocation = location;
     this.OriginalLocationUrl = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
 }
예제 #4
0
 public static string GetUriForTargetRelativeToMe(this Uri me, FileSystemInfo target, string newExtension)
 {
     return target.FullName != me.LocalPath
                ? me.MakeRelativeUri(target.ToUri()).ToString().Replace(target.Extension, newExtension)
                : "#";
 }