public void Include(IEnumerable <CodeSnippetReference> references) { foreach (var reference in references) { if (SnippetsUsed.Any(s => s.Key == reference.Key)) { continue; } SnippetReferences.Add(reference); } }
public void Include(List <CodeSnippet> snippets) { foreach (var snippet in snippets) { if (SnippetsUsed.Any(s => s.Key == snippet.Key)) { continue; } SnippetsUsed.Add(snippet); } }