6 instantiations of CodeNamespace
dotnet-svcutil-lib (6)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
34CodeNamespace targetNamespace = cu.Namespaces.Count > 0 ? cu.Namespaces[0] : new CodeNamespace();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
61_codeNamespace = new CodeNamespace();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
425CodeNamespace mainNamespace = new CodeNamespace();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
1270CodeNamespace codeNamespace = new CodeNamespace(clrNamespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
740codeNamespace = new CodeNamespace(ns);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
51targetCodeNamespace = new CodeNamespace(clrNamespace);
122 references to CodeNamespace
dotnet-svcutil-lib (122)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (4)
34CodeNamespace targetNamespace = cu.Namespaces.Count > 0 ? cu.Namespaces[0] : new CodeNamespace(); 64internal static string GetUniqueClassName(CodeNamespace ns) 108foreach (CodeNamespace ns in codeCompileUnit.Namespaces) 130private static CodeTypeDeclaration CreateArrayOfXmlElementClass(CodeNamespace ns)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (5)
330protected override void Visit(CodeNamespace ns) 338private void EnumerateTypes(CodeNamespace ns) 550else if (obj is CodeNamespace) 551Visit((CodeNamespace)obj); 676protected virtual void Visit(CodeNamespace ns) { }
CodeDomFixup\CodeDomVisitors\CodeNamespaceUniqueTypeFixer.cs (1)
14foreach (CodeNamespace ns in cu.Namespaces)
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
111foreach (CodeNamespace ns in cu.Namespaces)
CodeDomFixup\CodeDomVisitors\SpecificTypeVisitor.cs (1)
36protected override void Visit(CodeNamespace ns)
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (1)
19foreach (CodeNamespace ns in cu.Namespaces)
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
17foreach (CodeNamespace ns in cu.Namespaces)
CodeDomFixup\ConfigToCode.cs (6)
20foreach (CodeNamespace namespaceDecl in codeCompileUnit.Namespaces) 29private void MoveConfigIntoCode(CodeTypeDeclaration clientType, Collection<ServiceEndpoint> endpoints, CodeNamespace namespaceDecl) 99private void FixupConstructors(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 304private void FixupConstructorsDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 453private IEnumerable<CodeTypeDeclaration> FindExtendedClientTypes(string clientTypeName, CodeNamespace namespaceDecl) 464private IEnumerable<CodeTypeDeclaration> FindClientTypes(CodeNamespace namespaceDecl)
CodeDomFixup\MethodCreationHelper.cs (2)
102CodeNamespace ns = this.ClientType.UserData["Namespace"] as CodeNamespace;
CodeSerializer.cs (1)
113foreach (CodeNamespace ns in codeCompileUnit.Namespaces)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
247public virtual void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (7)
418foreach (CodeNamespace n in e.Namespaces) 428protected void GenerateTypes(CodeNamespace e) 541void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 998protected virtual void GenerateNamespace(CodeNamespace e) 1016protected void GenerateNamespaceImports(CodeNamespace e) 2115protected abstract void GenerateNamespaceStart(CodeNamespace e); 2122protected abstract void GenerateNamespaceEnd(CodeNamespace e);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (7)
36else if (e is CodeNamespace) 38ValidateNamespace((CodeNamespace)e); 138foreach (CodeNamespace n in e.Namespaces) 144private void ValidateNamespace(CodeNamespace e) 153private static void ValidateNamespaceStart(CodeNamespace e) 161private void ValidateNamespaceImports(CodeNamespace e) 203private void ValidateTypes(CodeNamespace e)
FrameworkFork\Microsoft.CodeDom\Compiler\ICodeGenerator.cs (1)
82void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (8)
1118private void GenerateNamespace(CodeNamespace e) 1252private void GenerateNamespaceImports(CodeNamespace e) 2686private void GenerateTypes(CodeNamespace e) 2955foreach (CodeNamespace n in e.Namespaces) 3263private void GenerateNamespaceStart(CodeNamespace e) 3324foreach (CodeNamespace nspace in e.Namespaces) 3454private void GenerateNamespaceEnd(CodeNamespace e) 4380void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespace.cs (2)
76/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeNamespace'/>. 85/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeNamespace'/> using the specified name.
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (18)
14/// A collection that stores <see cref='Microsoft.CodeDom.CodeNamespace'/> objects. 45/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> containing any array of <see cref='Microsoft.CodeDom.CodeNamespace'/> objects. 48public CodeNamespaceCollection(CodeNamespace[] value) 54/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.CodeNamespace'/>.</para> 56public CodeNamespace this[int index] 60return ((CodeNamespace)(List[index])); 69/// <para>Adds a <see cref='Microsoft.CodeDom.CodeNamespace'/> with the specified value to the 72public int Add(CodeNamespace value) 80public void AddRange(CodeNamespace[] value) 112/// <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> contains the specified <see cref='Microsoft.CodeDom.CodeNamespace'/>.</para> 114public bool Contains(CodeNamespace value) 123public void CopyTo(CodeNamespace[] array, int index) 129/// <para>Returns the index of a <see cref='Microsoft.CodeDom.CodeNamespace'/> in 132public int IndexOf(CodeNamespace value) 138/// <para>Inserts a <see cref='Microsoft.CodeDom.CodeNamespace'/> into the <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> at the specified index.</para> 140public void Insert(int index, CodeNamespace value) 146/// <para> Removes a specific <see cref='Microsoft.CodeDom.CodeNamespace'/> from the 149public void Remove(CodeNamespace value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (6)
26CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider) 33CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider) 40CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider) 163private CodeNamespace _code; 167internal MappedTypeDesc(string clrType, string name, string ns, XmlSchemaType xsdType, XmlSchemaObject context, SchemaImporterExtension extension, CodeNamespace code, StringCollection references) 192internal CodeTypeDeclaration ExportTypeDefinition(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (3)
24private CodeNamespace _codeNamespace; 33internal CodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, CodeGenerationOptions options, Hashtable exportedMappings) 56internal CodeNamespace CodeNamespace
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
29public SoapCodeExporter(CodeNamespace codeNamespace) : base(codeNamespace, null, null, CodeGenerationOptions.GenerateProperties, null) { } 34public SoapCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit) : base(codeNamespace, codeCompileUnit, null, CodeGenerationOptions.GenerateProperties, null) { } 40public SoapCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options) : base(codeNamespace, codeCompileUnit, null, CodeGenerationOptions.GenerateProperties, null) { } 46public SoapCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options, Hashtable mappings) 53public SoapCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, CodeGenerationOptions options, Hashtable mappings)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (5)
31public XmlCodeExporter(CodeNamespace codeNamespace) : base(codeNamespace, null, null, CodeGenerationOptions.GenerateProperties, null) { } 37public XmlCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit) : base(codeNamespace, codeCompileUnit, null, CodeGenerationOptions.GenerateProperties, null) { } 43public XmlCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options) 50public XmlCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options, Hashtable mappings) 57public XmlCodeExporter(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, CodeGenerationOptions options, Hashtable mappings)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (5)
425CodeNamespace mainNamespace = new CodeNamespace(); 463foreach (CodeNamespace ns in compileUnit.Namespaces) 2098internal string FindExtendedAnyElement(XmlSchemaAny any, bool mixed, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, out SchemaImporterExtension extension) 2113internal string FindExtendedType(string name, string ns, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, out SchemaImporterExtension extension) 2128internal string FindExtendedType(XmlSchemaType type, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, out SchemaImporterExtension extension)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (10)
108foreach (CodeNamespace codeNS in codeCompileUnit.Namespaces) 292CodeNamespace[] namespaces = new CodeNamespace[_codeCompileUnit.Namespaces.Count]; 294foreach (CodeNamespace codeNamespace in namespaces) 419CodeNamespace ns = GetCodeNamespace(clrNamespace, dataContract.StableName.Namespace, contractCodeDomInfo); 751private bool NamespaceContainsType(CodeNamespace ns, string typeName) 1255private CodeNamespace GetCodeNamespace(string clrNamespace, string dataContractNamespace, ContractCodeDomInfo contractCodeDomInfo) 1261foreach (CodeNamespace ns in codeNamespaceCollection) 1270CodeNamespace codeNamespace = new CodeNamespace(clrNamespace); 1403private void AddImportStatement(string clrNamespace, CodeNamespace codeNamespace)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
16internal CodeNamespace CodeNamespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
124foreach (CodeNamespace codeNamespace in codeCompileUnit.Namespaces)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
279CodeNamespace ns = _context.ServiceContractGenerator.NamespaceManager.EnsureNamespace(_contractNS); 299private CodeTypeReference GenerateTypedMessageHeaderAndReturnValueParts(CodeNamespace ns, string defaultName, MessageDescription message, bool isReply, bool hideFromEditor, ref bool isNewMessage, out IPartCodeGenerator partCodeGenerator) 585private void WrapTypedMessage(CodeNamespace ns, string typeName, MessageDescription messageDescription, bool isReply, bool isInherited, bool hideFromEditor)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerationContext.cs (2)
21private CodeNamespace _codeNamespace; 102internal CodeNamespace Namespace
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (6)
129CodeNamespace ns = this.NamespaceManager.EnsureNamespace(contractDescription.Namespace); 733public CodeNamespace EnsureNamespace(string descriptionNamespace) 737CodeNamespace codeNamespace = FindNamespace(ns); 747private CodeNamespace FindNamespace(string ns) 749foreach (CodeNamespace codeNamespace in _codeNamespaces) 763static internal CodeTypeReference GetCodeTypeReference(CodeNamespace codeNamespace, CodeTypeDeclaration codeType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (3)
120private CodeNamespace _codeNamespace; 123public UniqueCodeNamespaceScope(CodeNamespace codeNamespace) 128public CodeNamespace CodeNamespace
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (4)
28private CodeNamespace _codeNamespace; 38private static CodeNamespace GetTargetCodeNamespace(XmlSerializerImportOptions options) 40CodeNamespace targetCodeNamespace = null; 42foreach (CodeNamespace ns in options.CodeCompileUnit.Namespaces)
ImportModule.cs (1)
187foreach (CodeNamespace ns in codeCompileUnit.Namespaces)