Export (0) Print
Expand All
Expand Minimize

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.

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.

  Class Description
Public class CodeArgumentReferenceExpression Represents a reference to the value of an argument passed to a method.
Public class CodeArrayCreateExpression Represents an expression that creates an array.
Public class CodeArrayIndexerExpression Represents a reference to an index of an array.
Public class CodeAssignStatement Represents a simple assignment statement.
Public class CodeAttachEventStatement Represents a statement that attaches an event-handler delegate to an event.
Public class CodeAttributeArgument Represents an argument used in a metadata attribute declaration.
Public class CodeAttributeArgumentCollection Represents a collection of CodeAttributeArgument objects.
Public class CodeAttributeDeclaration Represents an attribute declaration.
Public class CodeAttributeDeclarationCollection Represents a collection of CodeAttributeDeclaration objects.
Public class CodeBaseReferenceExpression Represents a reference to the base class.
Public class CodeBinaryOperatorExpression Represents an expression that consists of a binary operation between two expressions.
Public class CodeCastExpression Represents an expression cast to a data type or interface.
Public class CodeCatchClause Represents a catch exception block of a try/catch statement.
Public class CodeCatchClauseCollection Represents a collection of CodeCatchClause objects.
Public class CodeChecksumPragma Represents a code checksum pragma code entity.
Public class CodeComment Represents a comment.
Public class CodeCommentStatement Represents a statement consisting of a single comment.
Public class CodeCommentStatementCollection Represents a collection of CodeCommentStatement objects.
Public class CodeCompileUnit Provides a container for a CodeDOM program graph.
Public class CodeConditionStatement Represents a conditional branch statement, typically represented as an if statement.
Public class CodeConstructor Represents a declaration for an instance constructor of a type.
Public class CodeDefaultValueExpression Represents a reference to a default value.
Public class CodeDelegateCreateExpression Represents an expression that creates a delegate.
Public class CodeDelegateInvokeExpression Represents an expression that raises an event.
Public class CodeDirectionExpression Represents an expression used as a method invoke parameter along with a reference direction indicator.
Public class CodeDirective Serves as the base class for code directive classes.
Public class CodeDirectiveCollection Represents a collection of CodeDirective objects.
Public class CodeEntryPointMethod Represents the entry point method of an executable.
Public class CodeEventReferenceExpression Represents a reference to an event.
Public class CodeExpression Represents a code expression. This is a base class for other code expression objects that is never instantiated.
Public class CodeExpressionCollection Represents a collection of CodeExpression objects.
Public class CodeExpressionStatement Represents a statement that consists of a single expression.
Public class CodeFieldReferenceExpression Represents a reference to a field.
Public class CodeGotoStatement Represents a goto statement.
Public class CodeIndexerExpression Represents a reference to an indexer property of an object.
Public class CodeIterationStatement Represents a for statement, or a loop through a block of statements, using a test expression as a condition for continuing to loop.
Public class CodeLabeledStatement Represents a labeled statement or a stand-alone label.
Public class CodeLinePragma Represents a specific location within a specific file.
Public class CodeMemberEvent Represents a declaration for an event of a type.
Public class CodeMemberField Represents a declaration for a field of a type.
Public class CodeMemberMethod Represents a declaration for a method of a type.
Public class CodeMemberProperty Represents a declaration for a property of a type.
Public class CodeMethodInvokeExpression Represents an expression that invokes a method.
Public class CodeMethodReferenceExpression Represents a reference to a method.
Public class CodeMethodReturnStatement Represents a return value statement.
Public class CodeNamespace Represents a namespace declaration.
Public class CodeNamespaceCollection Represents a collection of CodeNamespace objects.
Public class CodeNamespaceImport Represents a namespace import directive that indicates a namespace to use.
Public class CodeNamespaceImportCollection Represents a collection of CodeNamespaceImport objects.
Public class CodeObject Provides a common base class for most Code Document Object Model (CodeDOM) objects.
Public class CodeObjectCreateExpression Represents an expression that creates a new instance of a type.
Public class CodeParameterDeclarationExpression Represents a parameter declaration for a method, property, or constructor.
Public class CodeParameterDeclarationExpressionCollection Represents a collection of CodeParameterDeclarationExpression objects.
Public class CodePrimitiveExpression Represents a primitive data type value.
Public class CodePropertyReferenceExpression Represents a reference to the value of a property.
Public class CodePropertySetValueReferenceExpression Represents the value argument of a property set method call within a property set method.
Public class CodeRegionDirective Specifies the name and mode for a code region.
Public class CodeRemoveEventStatement Represents a statement that removes an event handler.
Public class CodeSnippetCompileUnit Represents a literal code fragment that can be compiled.
Public class CodeSnippetExpression Represents a literal expression.
Public class CodeSnippetStatement Represents a statement using a literal code fragment.
Public class CodeSnippetTypeMember Represents a member of a type using a literal code fragment.
Public class CodeStatement Represents the abstract base class from which all code statements derive.
Public class CodeStatementCollection Represents a collection of CodeStatement objects.
Public class CodeThisReferenceExpression Represents a reference to the current local class instance.
Public class CodeThrowExceptionStatement Represents a statement that throws an exception.
Public class CodeTryCatchFinallyStatement Represents a try block with any number of catch clauses and, optionally, a finally block.
Public class CodeTypeConstructor Represents a static constructor for a class.
Public class CodeTypeDeclaration Represents a type declaration for a class, structure, interface, or enumeration.
Public class CodeTypeDeclarationCollection Represents a collection of CodeTypeDeclaration objects.
Public class CodeTypeDelegate Represents a delegate declaration.
Public class CodeTypeMember Provides a base class for a member of a type. Type members include fields, methods, properties, constructors and nested types.
Public class CodeTypeMemberCollection Represents a collection of CodeTypeMember objects.
Public class CodeTypeOfExpression Represents a typeof expression, an expression that returns a Type for a specified type name.
Public class CodeTypeParameter Represents a type parameter of a generic type or method.
Public class CodeTypeParameterCollection Represents a collection of CodeTypeParameter objects.
Public class CodeTypeReference Represents a reference to a type.
Public class CodeTypeReferenceCollection Represents a collection of CodeTypeReference objects.
Public class CodeTypeReferenceExpression Represents a reference to a data type.
Public class CodeVariableDeclarationStatement Represents a variable declaration.
Public class CodeVariableReferenceExpression Represents a reference to a local variable.

  Enumeration Description
Public enumeration CodeBinaryOperatorType Defines identifiers for supported binary operators.
Public enumeration CodeRegionMode Specifies the start or end of a code region.
Public enumeration CodeTypeReferenceOptions Specifies how the code type reference is to be resolved.
Public enumeration FieldDirection Defines identifiers used to indicate the direction of parameter and argument declarations.
Public enumeration MemberAttributes Defines member attribute identifiers for class members.
Show:
© 2014 Microsoft