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