コード例 #1
0
 public FeatureNode(FileSystemInfoBase location, string relativePathFromRoot, Feature feature)
 {
     this.OriginalLocation     = location;
     this.OriginalLocationUrl  = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
     this.Feature = feature;
 }
コード例 #2
0
ファイル: MarkdownNode.cs プロジェクト: seanfitzg/pickles
 public MarkdownNode(FileSystemInfoBase location, string relativePathFromRoot, XElement markdownContent)
 {
     this.OriginalLocation     = location;
     this.OriginalLocationUrl  = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
     this.MarkdownContent      = markdownContent;
 }
コード例 #3
0
ファイル: ImageNode.cs プロジェクト: seanfitzg/pickles
 public ImageNode(FileSystemInfoBase location, string relativePathFromRoot)
 {
     this.OriginalLocation     = location;
     this.OriginalLocationUrl  = location.ToUri();
     this.RelativePathFromRoot = relativePathFromRoot;
 }
コード例 #4
0
 public static string GetUriForTargetRelativeToMe(this Uri me, FileSystemInfoBase target, string newExtension)
 {
     return(target.FullName != me.LocalPath
         ? me.MakeRelativeUri(target.ToUri()).ToString().Replace(target.Extension, newExtension)
         : "#");
 }