Inheritance: ShaderTools.VisualStudio.Core.Text.VisualStudioSourceTextFactoryBase
コード例 #1
0
ファイル: Extensions.cs プロジェクト: tgjones/HlslTools
 public static IIncludeFileSystem GetIncludeFileSystem(this ITextBuffer textBuffer, VisualStudioSourceTextFactory sourceTextFactory)
 {
     return textBuffer.Properties.GetOrCreateSingletonProperty(IncludeFileSystemKey,
         () => new VisualStudioFileSystem(textBuffer.GetTextContainer(), sourceTextFactory));
 }
コード例 #2
0
 public VisualStudioFileSystem(VisualStudioSourceTextContainer textContainer, VisualStudioSourceTextFactory sourceTextFactory)
 {
     _sourceTextFactory = sourceTextFactory;
     if (textContainer.Filename != null)
         _parentDirectory = Path.GetDirectoryName(textContainer.Filename);
 }