Meziantou.Framework.CodeDom namespace

Classes

NameDescription
AddEventHandlerStatementRepresents a statement that adds an event handler (+=).
ArgumentReferenceExpressionRepresents a reference to a method or constructor argument.
ArrayIndexerExpressionRepresents an array indexer expression (e.g., array[index]).
AssignStatementRepresents an assignment statement (=).
AwaitExpressionRepresents an await expression for asynchronous operations.
BaseExpressionRepresents a reference to the base class (base keyword).
BaseTypeParameterConstraintRepresents a base type constraint for a type parameter.
BinaryExpressionRepresents a binary operation expression (addition, comparison, logical operations, etc.).
CSharpCodeGeneratorGenerates C# code from a CodeDOM tree.
CSharpCodeGenerator.WriteStatementOptions
CastExpressionRepresents an explicit cast expression.
CatchClauseRepresents a catch clause in a try-catch statement.
CatchClauseCollectionRepresents a collection of catch clauses.
ClassDeclarationRepresents a class declaration.
ClassOrStructDeclarationBase class for class and struct declarations.
ClassTypeParameterConstraintRepresents a class constraint (where T : class).
CodeObjectBase class for all code objects in the CodeDOM tree.
CodeObjectCollection<T>Represents a collection of code objects that automatically manages parent-child relationships.
CommentRepresents a code comment that can be added to code objects.
CommentCollectionRepresents a collection of comments.
CommentStatementRepresents a statement that contains only a comment.
CompilationUnitRepresents a compilation unit (source file) containing namespaces, types, and using directives.
ConditionStatementRepresents a conditional statement (if-else).
ConstructorBaseInitializerRepresents a base class constructor initializer (: base()).
ConstructorDeclarationRepresents a constructor declaration.
ConstructorInitializerBase class for constructor initializers (this, base).
ConstructorParameterConstraintRepresents a new() constructor constraint (where T : new()).
ConstructorThisInitializerRepresents a this constructor initializer (: this()).
ConvertExpressionRepresents a type conversion expression (as operator).
CustomAttributeRepresents a custom attribute that can be applied to code declarations.
CustomAttributeArgumentRepresents an argument passed to a custom attribute.
DefaultFormatterVisitorA visitor that formats code with default formatting rules.
DefaultValueExpressionRepresents a default value expression (default(T) or default).
DelegateDeclarationRepresents a delegate declaration.
DirectiveBase class for all directives (using, etc.).
EnumerationDeclarationRepresents an enumeration declaration.
EnumerationMemberRepresents a member of an enumeration.
EventFieldDeclarationRepresents an event field declaration.
EventHandlerStatementBase class for event handler statements.
ExitLoopStatementRepresents a break statement to exit a loop.
ExpressionBase class for all expressions (literals, operators, method calls, etc.).
ExpressionCollectionStatementRepresents a statement containing a collection of expressions.
ExpressionStatementRepresents a statement that consists of a single expression.
ExtensionsProvides extension methods for CodeDOM types.
FieldDeclarationRepresents a field declaration.
GotoNextLoopIterationStatementRepresents a continue statement to skip to the next loop iteration.
IndentedTextWriterA text writer that supports indentation for generating formatted code.
InterfaceDeclarationRepresents an interface declaration.
IsInstanceOfTypeExpressionRepresents a type check expression (is operator).
IterationStatementRepresents a foreach iteration statement.
LiteralExpressionRepresents a literal value expression (numbers, strings, booleans, null, etc.).
MemberDeclarationBase class for all member declarations (methods, properties, fields, etc.).
MemberReferenceExpressionRepresents a reference to a member (field, property, method) of an object or type.
MethodArgumentCollectionRepresents a collection of method arguments.
MethodArgumentDeclarationRepresents a method argument declaration.
MethodDeclarationRepresents a method declaration.
MethodExitStatementRepresents a return statement without a value.
MethodInvokeArgumentExpressionRepresents a method invocation argument with optional name.
MethodInvokeExpressionRepresents a method invocation expression.
NameofExpressionRepresents a nameof expression.
NamespaceDeclarationRepresents a namespace declaration containing types, nested namespaces, and using directives.
NewArrayExpressionRepresents an array creation expression (new T[]).
NewObjectExpressionRepresents an object instantiation expression using the new keyword.
OperatorDeclarationRepresents an operator overload declaration.
PropertyAccessorDeclarationRepresents a property accessor (get or set).
PropertyDeclarationRepresents a property declaration.
RecordDeclarationRepresents a record declaration.
RecordStructDeclarationRepresents a record struct declaration.
RemoveEventHandlerStatementRepresents a statement that removes an event handler (-=).
ReturnStatementRepresents a return statement with an optional value.
SnippetExpressionRepresents a code snippet expression for injecting raw code.
SnippetStatementRepresents a code snippet statement for injecting raw code.
StatementBase class for all statements (assignments, loops, conditionals, etc.).
StatementCollectionRepresents a collection of statements.
StructDeclarationRepresents a struct declaration.
ThisExpressionRepresents a reference to the current instance (this keyword).
ThrowStatementRepresents a throw statement to raise an exception.
TryCatchFinallyStatementRepresents a try-catch-finally statement for exception handling.
TypeDeclarationBase class for all type declarations (classes, interfaces, structs, records, enums, delegates).
TypeOfExpressionRepresents a typeof expression.
TypeParameterRepresents a generic type parameter declaration.
TypeParameterConstraintBase class for all type parameter constraints.
TypeParameterConstraintCollectionRepresents a collection of type parameter constraints.
TypeReferenceRepresents a reference to a type, including support for generics, arrays, and nullable annotations.
TypeReferenceExpressionRepresents a reference to a type in an expression context.
UnaryExpressionRepresents a unary operation expression (negation, logical not, etc.).
UnmanagedTypeParameterConstraintRepresents an unmanaged constraint (where T : unmanaged).
UsingDirectiveRepresents a using directive for importing namespaces.
UsingStatementRepresents a using statement for automatic resource disposal.
ValueArgumentExpressionRepresents an argument value expression.
ValueTypeTypeParameterConstraintRepresents a struct/value type constraint (where T : struct).
VariableDeclarationStatementRepresents a local variable declaration statement.
VariableReferenceExpressionRepresents a reference to a local variable.
VisitorBase class for implementing the visitor pattern to traverse the CodeDOM tree.
WhileStatementRepresents a while loop statement.
XmlCommentRepresents an XML documentation comment element.
XmlCommentCollectionRepresents a collection of XML documentation comment elements.
YieldBreakStatementRepresents a yield break statement to end an iterator.
YieldReturnStatementRepresents a yield return statement in an iterator.

Interfaces

NameDescription
ICommentableDefines an interface for code objects that can have comments before and after them.
ICustomAttributeContainerDefines an interface for code objects that can have custom attributes.
IMemberContainerDefines an interface for code objects that can contain member declarations.
INamespaceDeclarationContainerDefines an interface for code objects that can contain namespace declarations.
INullableContextDefines an interface for code objects that have a nullable reference types context.
IParametrableTypeDefines an interface for types that support generic type parameters.
ITypeDeclarationContainerDefines an interface for code objects that can contain type declarations.
IUsingDirectiveContainerDefines an interface for code objects that can contain using directives.
IXmlCommentableDefines an interface for code objects that can have XML documentation comments.

Enums

NameDescription
BinaryOperatorSpecifies the binary operators for binary expressions.
CommentTypeSpecifies the type of a comment.
CustomAttributeTargetSpecifies the target of a custom attribute.
DirectionSpecifies the direction of a method argument.
ModifiersSpecifies the modifiers that can be applied to type and member declarations.
NullableAnnotationSpecifies the nullable annotation for a type reference.
NullableContextSpecifies the nullable reference types context.
UnaryOperatorSpecifies the unary operators for unary expressions.