CodeDOM Quick Reference
The quick reference table below enables developers using the Code Document Object Model (CodeDOM) to search for CodeDOM elements by type and function. This table is sorted by type of CodeDOM or source code element and provides a description as well as a link to reference material for each element. You can find additional information about how the CodeDOM represents source code and generates it in an extensible set of programming languages at Dynamic Source Code Generation and Compilation.
Code Graph Containers
Type of source code element | Representative CodeDOM element |
---|---|
A compilable source code graph. |
|
A compilable section of literal code. |
Namespace Declaration Elements
Type of source code element | Representative CodeDOM element |
---|---|
A namespace declaration. |
|
A namespace declaration collection. |
|
A namespace import. |
|
A namespace import collection. |
Type Declaration Elements
Type of source code element | Representative CodeDOM element |
---|---|
A type declaration for a class, struct or enumeration. |
|
A type declaration collection. |
Type Parameter Elements
Type of source code element | Representative CodeDOM element |
---|---|
A type parameter of a generic type declaration, or a type argument of a constructed generic type. |
|
A collection of type parameters or type arguments. |
Type Reference Elements
Type of source code element | Representative CodeDOM element |
---|---|
A reference to a type. |
|
A collection of references to types. |
|
Represents how the code type reference is to be resolved. |
Type Member Elements
Type of source code element | Representative CodeDOM element |
---|---|
An abstract base class that represents a member of a type. |
|
Represents a collection of members of a type. |
|
A class method declaration. |
|
A class field declaration. |
|
A class property declaration. |
|
A constructor for a type. |
|
A static constructor for a type. |
|
Represents the entry point of a program. |
|
Represents attributes with identifiers that are used by CodeTypeMember. |
Member Attributes
Type of source code element | Representative CodeDOM element |
---|---|
Represents member modifiers that are used by CodeTypeMember. |
|
A custom attribute declaration. |
|
A custom attribute declaration collection. |
|
A parameter declaration. |
|
A parameter declaration collection. |
|
An argument for a custom attribute. |
|
An argument for a custom attribute collection. |
Field direction modifiers | |
---|---|
A directional expression. |
|
Represents the direction of an argument. |
Code Statements
Type of source code element | Representative CodeDOM element |
---|---|
The abstract base class for statements. |
|
A code statement collection. |
|
A code expression that can be treated as a code statement. |
|
A variable declaration statement. |
Assignment operations | |
---|---|
A statement that assigns a value. |
Binary operations | |
---|---|
An expression that represents a binary operator. A binary operator is an operator that uses two operands, usually termed the left and right operands. |
|
Represents a type of binary operator. |
Comments | |
---|---|
A comment. |
|
A comment statement. |
|
A comment statement collection. |
Delegates and events | |
---|---|
A class event declaration. |
|
A delegate declaration. |
|
An expression that creates a delegate. |
|
An expression that invokes a delegate. |
|
A statement that attaches a delegate for an event. |
|
A statement that removes a delegate for an event. |
Error handling | |
---|---|
A throw exception statement. |
|
A try…catch…finally block. |
|
A catch clause block. |
|
A catch clause block collection. |
Flow control statements | |
---|---|
An if statement. |
|
A for loop statement. |
|
A goto statement. |
|
A return value statement. |
|
A labeled statement. |
Code Expressions
Type of source code element | Representative CodeDOM element |
---|---|
The abstract base class for expressions. |
|
A code expression collection. |
|
An expression that casts an object or expression to a data type. |
|
A primitive value expression. |
|
A typeof expression. |
|
An array indexer. |
|
A reference to an argument. |
|
A reference to a variable. |
|
An expression that references a type. |
|
An expression that represents the value argument of a property set. |
|
A reference to a default value for a type. |
Object creation | |
---|---|
An expression that creates an object. For example, the new operator. |
|
An expression that creates an array. |
Method invocation | |
---|---|
An expression that invokes a method. |
Member references | |
---|---|
A type indexer. |
|
A reference to a base class. |
|
A reference to a field. |
|
A reference to a method. |
|
A reference to a property. |
|
A reference to an event. |
|
A reference to the current object. |
Literal Snippets
Type of source code element | Representative CodeDOM element |
---|---|
A literal code compilable unit. |
|
A literal code element that represents a class member. |
|
A literal code statement. |
|
A literal code element that represents an expression. |
Other
Type of source code element | Representative CodeDOM element |
---|---|
The abstract base class for CodeDOM objects. |
|
Represents a location with a file name and line number. |
|
Represents a code checksum pragma code entity. |
|
The base class for code directive classes. |
|
A collection of code directives. |
|
Specifies the name and mode for a code region. |
|
Specifies the start and end of a code region. |
See Also
Reference
System.CodeDom
System.CodeDom.Compiler
Concepts
.NET Framework General Reference