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