10 instantiations of CodeNamespaceImport
Microsoft.Build.Tasks.Core (5)
CodeTaskFactory.cs (1)
776codeNamespace.Imports.Add(new CodeNamespaceImport(importname));
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
247codeNamespace.Imports.AddRange(DefaultNamespaces.Union(taskInfo.Namespaces, StringComparer.OrdinalIgnoreCase).Select(i => new CodeNamespaceImport(i)).ToArray());
system.design\stronglytypedresourcebuilder.cs (1)
199ns.Imports.Add(new CodeNamespaceImport("System"));
WriteCodeFragment.cs (1)
182globalNamespace.Imports.Add(new CodeNamespaceImport(name));
XamlTaskFactory\TaskGenerator.cs (1)
1121codeNamespace.Imports.Add(new CodeNamespaceImport(reference));
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
589cnsImports.Imports.Add(new CodeNamespaceImport("System")); 595cnsImports.Imports.Add(new CodeNamespaceImport(u));
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1508importCollection.Add(new CodeNamespaceImport(clrNamespace));
System.Windows.Forms.Design (2)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
365codeNamespace.Imports.Add(new CodeNamespaceImport("System")); 402codeNamespace.Imports.Add(new CodeNamespaceImport("System.Reflection"));
26 references to CodeNamespaceImport
System (1)
src\libraries\shims\System\ref\System.cs (1)
75[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeNamespaceImport))]
System.CodeDom (24)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
639foreach (CodeNamespaceImport imp in e.Imports) 2462foreach (CodeNamespaceImport import in nspace.Imports) 2558private void GenerateNamespaceImport(CodeNamespaceImport e)
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
2247foreach (CodeNamespaceImport import in nspace.Imports) 2350protected override void GenerateNamespaceImport(CodeNamespaceImport e)
System\CodeDom\CodeNamespaceImportCollection.cs (13)
12private readonly Dictionary<string, CodeNamespaceImport> _keys = new Dictionary<string, CodeNamespaceImport>(StringComparer.OrdinalIgnoreCase); 14public CodeNamespaceImport this[int index] 16get => (CodeNamespaceImport)_data[index]; 30public void Add(CodeNamespaceImport value) 39public void AddRange(CodeNamespaceImport[] value) 46foreach (CodeNamespaceImport c in value) 61foreach (CodeNamespaceImport c in _data) 74this[index] = (CodeNamespaceImport)value; 89int IList.Add(object value) => _data.Add((CodeNamespaceImport)value); 95int IList.IndexOf(object value) => _data.IndexOf((CodeNamespaceImport)value); 99_data.Insert(index, (CodeNamespaceImport)value); 105_data.Remove((CodeNamespaceImport)value);
System\CodeDom\Compiler\CodeGenerator.cs (2)
828foreach (CodeNamespaceImport imp in e.Imports) 1608protected abstract void GenerateNamespaceImport(CodeNamespaceImport e);
System\CodeDom\Compiler\CodeValidator.cs (4)
36else if (e is CodeNamespaceImport) 38ValidateNamespaceImport((CodeNamespaceImport)e); 150foreach (CodeNamespaceImport imp in e.Imports) 156private static void ValidateNamespaceImport(CodeNamespaceImport e)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1502foreach (CodeNamespaceImport import in importCollection)