Beispiel #1
0
        public void Include(IEnumerable <CodeSnippetReference> references)
        {
            foreach (var reference in references)
            {
                if (SnippetsUsed.Any(s => s.Key == reference.Key))
                {
                    continue;
                }

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

                SnippetsUsed.Add(snippet);
            }
        }