System.CodeDom
Namespace
The System.CodeDom namespace contains classes that can be used to represent the elements and structure of a source code document. The classes in this namespace can be used to model the structure of a source code document that can be output as source code in a supported language using the functionality provided by the System.CodeDom.Compiler namespace.
Classes
CodeArgumentReferenceExpression |
Represents a reference to the value of an argument passed to a method. |
CodeArrayCreateExpression |
Represents an expression that creates an array. |
CodeArrayIndexerExpression |
Represents a reference to an index of an array. |
CodeAssignStatement |
Represents a simple assignment statement. |
CodeAttachEventStatement |
Represents a statement that attaches an event-handler delegate to an event. |
CodeAttributeArgument |
Represents an argument used in a metadata attribute declaration. |
CodeAttributeArgumentCollection |
Represents a collection of CodeAttributeArgument objects. |
CodeAttributeDeclaration |
Represents an attribute declaration. |
CodeAttributeDeclarationCollection |
Represents a collection of CodeAttributeDeclaration objects. |
CodeBaseReferenceExpression |
Represents a reference to the base class. |
CodeBinaryOperatorExpression |
Represents an expression that consists of a binary operation between two expressions. |
CodeCastExpression |
Represents an expression cast to a data type or interface. |
CodeCatchClause |
Represents a |
CodeCatchClauseCollection |
Represents a collection of CodeCatchClause objects. |
CodeChecksumPragma |
Represents a code checksum pragma code entity. |
CodeComment |
Represents a comment. |
CodeCommentStatement |
Represents a statement consisting of a single comment. |
CodeCommentStatementCollection |
Represents a collection of CodeCommentStatement objects. |
CodeCompileUnit |
Provides a container for a CodeDOM program graph. |
CodeConditionStatement |
Represents a conditional branch statement, typically represented as an |
CodeConstructor |
Represents a declaration for an instance constructor of a type. |
CodeDefaultValueExpression |
Represents a reference to a default value. |
CodeDelegateCreateExpression |
Represents an expression that creates a delegate. |
CodeDelegateInvokeExpression |
Represents an expression that raises an event. |
CodeDirectionExpression |
Represents an expression used as a method invoke parameter along with a reference direction indicator. |
CodeDirective |
Serves as the base class for code directive classes. |
CodeDirectiveCollection |
Represents a collection of CodeDirective objects. |
CodeEntryPointMethod |
Represents the entry point method of an executable. |
CodeEventReferenceExpression |
Represents a reference to an event. |
CodeExpression |
Represents a code expression. This is a base class for other code expression objects that is never instantiated. |
CodeExpressionCollection |
Represents a collection of CodeExpression objects. |
CodeExpressionStatement |
Represents a statement that consists of a single expression. |
CodeFieldReferenceExpression |
Represents a reference to a field. |
CodeGotoStatement |
Represents a |
CodeIndexerExpression |
Represents a reference to an indexer property of an object. |
CodeIterationStatement |
Represents a |
CodeLabeledStatement |
Represents a labeled statement or a stand-alone label. |
CodeLinePragma |
Represents a specific location within a specific file. |
CodeMemberEvent |
Represents a declaration for an event of a type. |
CodeMemberField |
Represents a declaration for a field of a type. |
CodeMemberMethod |
Represents a declaration for a method of a type. |
CodeMemberProperty |
Represents a declaration for a property of a type. |
CodeMethodInvokeExpression |
Represents an expression that invokes a method. |
CodeMethodReferenceExpression |
Represents a reference to a method. |
CodeMethodReturnStatement |
Represents a return value statement. |
CodeNamespace |
Represents a namespace declaration. |
CodeNamespaceCollection |
Represents a collection of CodeNamespace objects. |
CodeNamespaceImport |
Represents a namespace import directive that indicates a namespace to use. |
CodeNamespaceImportCollection |
Represents a collection of CodeNamespaceImport objects. |
CodeObject |
Provides a common base class for most Code Document Object Model (CodeDOM) objects. |
CodeObjectCreateExpression |
Represents an expression that creates a new instance of a type. |
CodeParameterDeclarationExpression |
Represents a parameter declaration for a method, property, or constructor. |
CodeParameterDeclarationExpressionCollection |
Represents a collection of CodeParameterDeclarationExpression objects. |
CodePrimitiveExpression |
Represents a primitive data type value. |
CodePropertyReferenceExpression |
Represents a reference to the value of a property. |
CodePropertySetValueReferenceExpression |
Represents the value argument of a property set method call within a property set method. |
CodeRegionDirective |
Specifies the name and mode for a code region. |
CodeRemoveEventStatement |
Represents a statement that removes an event handler. |
CodeSnippetCompileUnit |
Represents a literal code fragment that can be compiled. |
CodeSnippetExpression |
Represents a literal expression. |
CodeSnippetStatement |
Represents a statement using a literal code fragment. |
CodeSnippetTypeMember |
Represents a member of a type using a literal code fragment. |
CodeStatement |
Represents the |
CodeStatementCollection |
Represents a collection of CodeStatement objects. |
CodeThisReferenceExpression |
Represents a reference to the current local class instance. |
CodeThrowExceptionStatement |
Represents a statement that throws an exception. |
CodeTryCatchFinallyStatement |
Represents a |
CodeTypeConstructor |
Represents a static constructor for a class. |
CodeTypeDeclaration |
Represents a type declaration for a class, structure, interface, or enumeration. |
CodeTypeDeclarationCollection |
Represents a collection of CodeTypeDeclaration objects. |
CodeTypeDelegate |
Represents a delegate declaration. |
CodeTypeMember |
Provides a base class for a member of a type. Type members include fields, methods, properties, constructors and nested types. |
CodeTypeMemberCollection |
Represents a collection of CodeTypeMember objects. |
CodeTypeOfExpression |
Represents a |
CodeTypeParameter |
Represents a type parameter of a generic type or method. |
CodeTypeParameterCollection |
Represents a collection of CodeTypeParameter objects. |
CodeTypeReference |
Represents a reference to a type. |
CodeTypeReferenceCollection |
Represents a collection of CodeTypeReference objects. |
CodeTypeReferenceExpression |
Represents a reference to a data type. |
CodeVariableDeclarationStatement |
Represents a variable declaration. |
CodeVariableReferenceExpression |
Represents a reference to a local variable. |
Enums
CodeBinaryOperatorType |
Defines identifiers for supported binary operators. |
CodeRegionMode |
Specifies the start or end of a code region. |
CodeTypeReferenceOptions |
Specifies how the code type reference is to be resolved. |
FieldDirection |
Defines identifiers used to indicate the direction of parameter and argument declarations. |
MemberAttributes |
Defines member attribute identifiers for class members. |
Remarks
For more information about using the CodeDOM to represent and generate source code, see Dynamic Source Code Generation and Compilation.
For a table that lists the CodeDOM elements by type and function, see the CodeDOM Quick Reference.
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...