Ejemplo n.º 1
0
 private static IEnumerable <SnippetDirectory> LoadSnippetDirectories()
 {
     return(Document.Create(@"..\..\SnippetDirectories.xml")
            .ReadRecords()
            .Where(f => !f.HasTag(KnownTags.Disabled))
            .Select(record => SnippetDirectoryMapper.MapFromRecord(record)));
 }
Ejemplo n.º 2
0
 public static IEnumerable <SnippetDirectory> LoadFromFile(string url)
 {
     return(Document.ReadRecords(url)
            .Where(f => !f.HasTag(KnownTags.Disabled))
            .Select(record => SnippetDirectoryMapper.MapFromRecord(record)));
 }