Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }