1 type derived from CodeTypeDeclaration
System.CodeDom (1)
System\CodeDom\CodeTypeDelegate.cs (1)
8public class CodeTypeDelegate : CodeTypeDeclaration
11 instantiations of CodeTypeDeclaration
Microsoft.Build.Tasks.Core (4)
CodeTaskFactory.cs (1)
921CodeTypeDeclaration codeTypeDeclaration = new CodeTypeDeclaration
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
212CodeTypeDeclaration codeTypeDeclaration = new CodeTypeDeclaration
system.design\stronglytypedresourcebuilder.cs (1)
203var srClass = new CodeTypeDeclaration(className);
XamlTaskFactory\TaskGenerator.cs (1)
373var taskClass = new CodeTypeDeclaration(_taskParser.GeneratedTaskName);
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2451CodeTypeDeclaration ctdClass = new CodeTypeDeclaration(); 2732CodeTypeDeclaration ctdClass = new CodeTypeDeclaration();
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
311CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
System\CodeDom\Compiler\CodeGenerator.cs (1)
417CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
516CodeTypeDeclaration typeDecl = new CodeTypeDeclaration(typeName);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
418CodeTypeDeclaration docType = new(manager.GetName(root)!);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
369CodeTypeDeclaration classType = new(className);
159 references to CodeTypeDeclaration
Microsoft.Build.Tasks.Core (20)
CodeTaskFactory.cs (8)
353private static void CreateProperty(CodeTypeDeclaration ctd, string propertyName, Type propertyType, object defaultValue) 390private static void CreateExecuteMethodFromFragment(CodeTypeDeclaration codeTypeDeclaration, string executeCode) 406private static void CreateTaskBody(CodeTypeDeclaration codeTypeDeclaration, string taskCode) 415private static void CreateProperty(CodeTypeDeclaration codeTypeDeclaration, TaskPropertyInfo propInfo, object defaultValue) 760CodeTypeDeclaration codeTypeDeclaration = CreateTaskClass(); 901private void CreateTaskProperties(CodeTypeDeclaration codeTypeDeclaration) 919private CodeTypeDeclaration CreateTaskClass() 921CodeTypeDeclaration codeTypeDeclaration = new CodeTypeDeclaration
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
212CodeTypeDeclaration codeTypeDeclaration = new CodeTypeDeclaration 618private static CodeMemberProperty CreateProperty(CodeTypeDeclaration codeTypeDeclaration, string name, Type type, object defaultValue = null)
system.design\stronglytypedresourcebuilder.cs (3)
203var srClass = new CodeTypeDeclaration(className); 314private static void EmitBasicClassMembers(CodeTypeDeclaration srClass, String nameSpace, String baseName, String resourcesNamespace, bool internalClass, bool useStatic) 520private static bool DefineResourceFetchingProperty(String propertyName, String resourceName, ResourceData data, CodeTypeDeclaration srClass, bool internalClass, bool useStatic)
XamlTaskFactory\TaskGenerator.cs (7)
373var taskClass = new CodeTypeDeclaration(_taskParser.GeneratedTaskName); 427private void GenerateDefaultSetProperties(CodeTypeDeclaration taskClass) 476private void GenerateFallbacks(CodeTypeDeclaration taskClass) 510private void GenerateProperties(CodeTypeDeclaration taskClass, LinkedList<Property> propertyList) 1068private void GenerateToolNameProperty(CodeTypeDeclaration taskClass) 1128private void GenerateConstructor(CodeTypeDeclaration taskClass) 1166private void GenerateRelations(CodeTypeDeclaration taskClass)
PresentationBuildTasks (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
2446private CodeTypeDeclaration GenerateClass(string className, ref string modifier, Type baseClass, string baseClassFullName) 2451CodeTypeDeclaration ctdClass = new CodeTypeDeclaration(); 2536CodeTypeDeclaration ctdClass = GenerateClass(className, ref modifier, baseClass, baseClassFullName); 2732CodeTypeDeclaration ctdClass = new CodeTypeDeclaration(); 3390internal CodeContextRoot(CodeTypeDeclaration codeClass, 3437internal CodeTypeDeclaration CodeClass 3456private CodeTypeDeclaration _codeClass;
System (1)
src\libraries\shims\System\ref\System.cs (1)
97[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeTypeDeclaration))]
System.CodeDom (78)
Microsoft\CSharp\CSharpCodeGenerator.cs (21)
22private CodeTypeDeclaration _currentClass; 311CodeTypeDeclaration dummyClass = new CodeTypeDeclaration(); 341private void GenerateEvents(CodeTypeDeclaration e) 370private void GenerateFields(CodeTypeDeclaration e) 1318private void GenerateMethods(CodeTypeDeclaration e) 1415private void GenerateProperties(CodeTypeDeclaration e) 1727private void GenerateConstructors(CodeTypeDeclaration e) 1833private void GenerateType(CodeTypeDeclaration e) 1887foreach (CodeTypeDeclaration c in e.Types) 1897private void GenerateTypeStart(CodeTypeDeclaration e) 1954private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) 1961if (member is CodeTypeDeclaration) 1963((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options); 2045private void GenerateTypeConstructors(CodeTypeDeclaration e) 2074private void GenerateSnippetMembers(CodeTypeDeclaration e) 2123private void GenerateNestedTypes(CodeTypeDeclaration e) 2127if (current is CodeTypeDeclaration) 2133CodeTypeDeclaration currentClass = (CodeTypeDeclaration)current; 2320private void OutputTypeAttributes(CodeTypeDeclaration e) 3157void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)
Microsoft\VisualBasic\VBCodeGenerator.cs (10)
681private void OutputTypeAttributes(CodeTypeDeclaration e) 1454protected override void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c) 1550private static bool MethodIsOverloaded(CodeMemberMethod e, CodeTypeDeclaration c) 1579protected override void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c) 1696protected override void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c) 1712private static bool PropertyIsOverloaded(CodeMemberProperty e, CodeTypeDeclaration c) 1734protected override void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c) 1874protected override void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c) 1940protected override void GenerateTypeStart(CodeTypeDeclaration e) 2124protected override void GenerateTypeEnd(CodeTypeDeclaration e)
System\CodeDom\CodeTypeDeclarationCollection.cs (10)
17public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) 22public CodeTypeDeclaration this[int index] 24get => (CodeTypeDeclaration)List[index]; 28public int Add(CodeTypeDeclaration value) => List.Add(value); 30public void AddRange(CodeTypeDeclaration[] value) 57public bool Contains(CodeTypeDeclaration value) => List.Contains(value); 59public void CopyTo(CodeTypeDeclaration[] array, int index) => List.CopyTo(array, index); 61public int IndexOf(CodeTypeDeclaration value) => List.IndexOf(value); 63public void Insert(int index, CodeTypeDeclaration value) => List.Insert(index, value); 65public void Remove(CodeTypeDeclaration value) => List.Remove(value);
System\CodeDom\Compiler\CodeDomProvider.cs (1)
172public virtual void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options) =>
System\CodeDom\Compiler\CodeGenerator.cs (27)
16private CodeTypeDeclaration _currentClass; 21protected CodeTypeDeclaration CurrentClass => _currentClass; 51private void GenerateType(CodeTypeDeclaration e) 107private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) 114if (member is CodeTypeDeclaration) 116((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options); 198private void GenerateTypeConstructors(CodeTypeDeclaration e) 242foreach (CodeTypeDeclaration c in e.Types) 254void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 417CodeTypeDeclaration dummyClass = new CodeTypeDeclaration(); 439private void GenerateConstructors(CodeTypeDeclaration e) 474private void GenerateEvents(CodeTypeDeclaration e) 624private void GenerateFields(CodeTypeDeclaration e) 659private void GenerateSnippetMembers(CodeTypeDeclaration e) 739private void GenerateMethods(CodeTypeDeclaration e) 781private void GenerateNestedTypes(CodeTypeDeclaration e) 785if (current is CodeTypeDeclaration) 791CodeTypeDeclaration currentClass = (CodeTypeDeclaration)current; 843private void GenerateProperties(CodeTypeDeclaration e) 1569protected abstract void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c); 1572protected abstract void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c); 1573protected abstract void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c); 1574protected abstract void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c); 1575protected abstract void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c); 1577protected abstract void GenerateTypeStart(CodeTypeDeclaration e); 1578protected abstract void GenerateTypeEnd(CodeTypeDeclaration e);
System\CodeDom\Compiler\CodeValidator.cs (8)
16private CodeTypeDeclaration _currentClass; 91else if (e is CodeTypeDeclaration) 93ValidateTypeDeclaration((CodeTypeDeclaration)e); 187foreach (CodeTypeDeclaration type in e.Types) 193private void ValidateTypeDeclaration(CodeTypeDeclaration e) 197CodeTypeDeclaration savedClass = _currentClass; 208private void ValidateTypeMembers(CodeTypeDeclaration e) 371private void ValidateTypeStart(CodeTypeDeclaration e)
System\CodeDom\Compiler\ICodeGenerator.cs (1)
20void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o);
System.Management (1)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (1)
202public System.CodeDom.CodeTypeDeclaration GetStronglyTypedClassCode(bool includeSystemClassInClassDef, bool systemPropertyClass) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); }
System.Runtime.Serialization.Schema (25)
System\Runtime\Serialization\Schema\CodeExporter.cs (20)
110foreach (CodeTypeDeclaration codeTypeDecl in codeNS.Types) 288if (obj is CodeTypeDeclaration codeTypeDeclaration) 290CodeTypeDeclaration? newCodeTypeDeclaration = surrogateProvider.ProcessImportedType(codeTypeDeclaration, _codeCompileUnit); 420CodeTypeDeclaration? type = contractCodeDomInfo.TypeDeclaration; 469private CodeTypeDeclaration? GetNestedType(DataContract dataContract, ContractCodeDomInfo contractCodeDomInfo) 489CodeTypeDeclaration containingType = containingContractCodeDomInfo.TypeDeclaration!; // Nested types by definition have containing types. 503CodeTypeDeclaration type = CreateTypeDeclaration(nestedTypeName, dataContract); 514private static CodeTypeDeclaration CreateTypeDeclaration(string typeName, DataContract dataContract) 516CodeTypeDeclaration typeDecl = new CodeTypeDeclaration(typeName); 724foreach (CodeTypeDeclaration type in ns.Types) 745private static bool TypeContainsNestedType(CodeTypeDeclaration containingType, string typeName) 749if (member is CodeTypeDeclaration declaration) 768private void AddSerializableAttribute(bool generateSerializable, CodeTypeDeclaration type, ContractCodeDomInfo contractCodeDomInfo) 789CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1018CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1038CodeTypeDeclaration codeTypeDeclaration = contractCodeDomInfo.TypeDeclaration; 1069CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1128CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1239CodeTypeDeclaration generatedType = contractCodeDomInfo.TypeDeclaration; 1270CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration;
System\Runtime\Serialization\Schema\ContractCodeDomInfo.cs (1)
41internal CodeTypeDeclaration? TypeDeclaration { get; set; }
System\Runtime\Serialization\Schema\ISerializationCodeDomSurrogateProvider.cs (4)
19/// <param name="typeDeclaration">A <see cref="CodeTypeDeclaration"/> to process that represents the type declaration generated during schema import.</param> 21/// <returns>A <see cref="CodeTypeDeclaration"/> that contains the processed type.</returns> 22CodeTypeDeclaration ProcessImportedType(CodeTypeDeclaration typeDeclaration, CodeCompileUnit compileUnit);
System.Windows.Forms.Design (27)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (11)
48private CodeTypeDeclaration? _documentType; 73LoaderHost.RemoveService<CodeTypeDeclaration>(); 125internal static void DumpTypeDeclaration(CodeTypeDeclaration? typeDeclaration) 228foreach (CodeTypeDeclaration typeDeclaration in codeNamespace.Types) 384private bool IntegrateSerializedTree(IDesignerSerializationManager manager, CodeTypeDeclaration newDecl) 387CodeTypeDeclaration docDeclaration = _documentType; 794CodeTypeDeclaration? typeDeclaration = null; 802typeDeclaration = _rootSerializer.Serialize(manager, LoaderHost.RootComponent) as CodeTypeDeclaration; 1037CodeTypeDeclaration? type = _documentType; 1144CodeTypeDeclaration? type = _documentType; 1236CodeTypeDeclaration? type = _documentType;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (2)
143CodeTypeDeclaration? typeDecl = site.GetService<CodeTypeDeclaration>();
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
229CodeTypeDeclaration typeDecl = manager.GetContext<CodeTypeDeclaration>()!;
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (2)
23protected override CodeMemberMethod GetInitializeMethod(IDesignerSerializationManager manager, CodeTypeDeclaration typeDecl, object value) 52protected override CodeMemberMethod[] GetInitializeMethods(IDesignerSerializationManager manager, CodeTypeDeclaration typeDecl)
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
50if (manager.TryGetContext(out CodeTypeDeclaration? typeDecl) && manager.TryGetContext(out RootContext? rootCtx))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (6)
38public virtual object Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) 334protected virtual CodeMemberMethod GetInitializeMethod(IDesignerSerializationManager manager, CodeTypeDeclaration declaration, object value) 353protected virtual CodeMemberMethod[] GetInitializeMethods(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) 408public virtual CodeTypeDeclaration Serialize(IDesignerSerializationManager manager, object root, ICollection? members) 418CodeTypeDeclaration docType = new(manager.GetName(root)!); 478private void IntegrateStatements(IDesignerSerializationManager manager, object root, ICollection? members, StatementContext statementCtx, CodeTypeDeclaration typeDecl)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
369CodeTypeDeclaration classType = new(className); 458CodeTypeDeclaration classDeclaration, 674CodeTypeDeclaration classDeclaration,