10 instantiations of CodeNamespace
Microsoft.Build.Tasks.Core (5)
CodeTaskFactory.cs (1)
773var codeNamespace = new CodeNamespace("InlineCode");
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
246CodeNamespace codeNamespace = new CodeNamespace("InlineCode");
system.design\stronglytypedresourcebuilder.cs (1)
198var ns = new CodeNamespace(generatedCodeNamespace);
WriteCodeFragment.cs (1)
167var globalNamespace = new CodeNamespace();
XamlTaskFactory\TaskGenerator.cs (1)
372var dataDrivenToolTaskNamespace = new CodeNamespace(_taskParser.Namespace);
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
585CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() : _ccRoot.CodeNS; 2532CodeNamespace cns = new CodeNamespace(); 2725CodeNamespace cns = new CodeNamespace();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1354CodeNamespace codeNamespace = new CodeNamespace(clrNamespace);
System.Windows.Forms.Design (1)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
364CodeNamespace codeNamespace = new(generatedCodeNamespace);
65 references to CodeNamespace
Microsoft.Build.Tasks.Core (6)
CodeTaskFactory.cs (1)
773var codeNamespace = new CodeNamespace("InlineCode");
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
246CodeNamespace codeNamespace = new CodeNamespace("InlineCode");
system.design\stronglytypedresourcebuilder.cs (1)
198var ns = new CodeNamespace(generatedCodeNamespace);
WriteCodeFragment.cs (1)
167var globalNamespace = new CodeNamespace();
XamlTaskFactory\TaskGenerator.cs (2)
372var dataDrivenToolTaskNamespace = new CodeNamespace(_taskParser.Namespace); 1104private static void GenerateImports(CodeNamespace codeNamespace)
PresentationBuildTasks (6)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (6)
585CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() : _ccRoot.CodeNS; 2532CodeNamespace cns = new CodeNamespace(); 2725CodeNamespace cns = new CodeNamespace(); 3391CodeNamespace codeNS, 3442internal CodeNamespace CodeNS 3457private CodeNamespace _codeNS;
System (1)
src\libraries\shims\System\ref\System.cs (1)
73[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeNamespace))]
System.CodeDom (38)
Microsoft\CSharp\CSharpCodeGenerator.cs (8)
516private void GenerateNamespace(CodeNamespace e) 637private void GenerateNamespaceImports(CodeNamespace e) 1885private void GenerateTypes(CodeNamespace e) 2141foreach (CodeNamespace n in e.Namespaces) 2403private void GenerateNamespaceStart(CodeNamespace e) 2454foreach (CodeNamespace nspace in e.Namespaces) 2549private void GenerateNamespaceEnd(CodeNamespace e) 3248void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o)
Microsoft\VisualBasic\VBCodeGenerator.cs (4)
2157protected override void GenerateNamespace(CodeNamespace e) 2241foreach (CodeNamespace nspace in e.Namespaces) 2323protected override void GenerateNamespaceStart(CodeNamespace e) 2341protected override void GenerateNamespaceEnd(CodeNamespace e)
System\CodeDom\CodeNamespaceCollection.cs (10)
17public CodeNamespaceCollection(CodeNamespace[] value) 22public CodeNamespace this[int index] 24get => (CodeNamespace)List[index]; 28public int Add(CodeNamespace value) => List.Add(value); 30public void AddRange(CodeNamespace[] value) 57public bool Contains(CodeNamespace value) => List.Contains(value); 59public void CopyTo(CodeNamespace[] array, int index) => List.CopyTo(array, index); 61public int IndexOf(CodeNamespace value) => List.IndexOf(value); 63public void Insert(int index, CodeNamespace value) => List.Insert(index, value); 65public void Remove(CodeNamespace value) => List.Remove(value);
System\CodeDom\Compiler\CodeDomProvider.cs (1)
166public virtual void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options) =>
System\CodeDom\Compiler\CodeGenerator.cs (7)
229foreach (CodeNamespace n in e.Namespaces) 235protected void GenerateTypes(CodeNamespace e) 345void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 804protected virtual void GenerateNamespace(CodeNamespace e) 821protected void GenerateNamespaceImports(CodeNamespace e) 1606protected abstract void GenerateNamespaceStart(CodeNamespace e); 1607protected abstract void GenerateNamespaceEnd(CodeNamespace e);
System\CodeDom\Compiler\CodeValidator.cs (7)
32else if (e is CodeNamespace) 34ValidateNamespace((CodeNamespace)e); 126foreach (CodeNamespace n in e.Namespaces) 132private void ValidateNamespace(CodeNamespace e) 140private static void ValidateNamespaceStart(CodeNamespace e) 148private static void ValidateNamespaceImports(CodeNamespace e) 185private void ValidateTypes(CodeNamespace e)
System\CodeDom\Compiler\ICodeGenerator.cs (1)
18void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o);
System.Runtime.Serialization.Schema (11)
System\Runtime\Serialization\Schema\CodeExporter.cs (10)
101foreach (CodeNamespace codeNS in codeCompileUnit.Namespaces) 247CodeNamespace[] namespaces = new CodeNamespace[_codeCompileUnit.Namespaces.Count]; 249foreach (CodeNamespace codeNamespace in namespaces) 424CodeNamespace ns = GetCodeNamespace(clrNamespace, dataContract.XmlName.Namespace, contractCodeDomInfo); 722private static bool NamespaceContainsType(CodeNamespace ns, string typeName) 1339private CodeNamespace GetCodeNamespace(string clrNamespace, string dataContractNamespace, ContractCodeDomInfo contractCodeDomInfo) 1345foreach (CodeNamespace ns in codeNamespaceCollection) 1354CodeNamespace codeNamespace = new CodeNamespace(clrNamespace); 1492private static void AddImportStatement(string? clrNamespace, CodeNamespace? codeNamespace)
System\Runtime\Serialization\Schema\ContractCodeDomInfo.cs (1)
35internal CodeNamespace? CodeNamespace { get; set; }
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
47private CodeNamespace? _documentNamespace; 226foreach (CodeNamespace codeNamespace in _documentCompileUnit.Namespaces)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
364CodeNamespace codeNamespace = new(generatedCodeNamespace);