Open sandboxFocus

Interface INamedTypeBuilder

Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface INamedTypeBuilder : IMemberOrNamedTypeBuilder, IDeclarationBuilder, INamedType, IType, IEquatable<IType>, IGeneric, IMemberOrNamedType, INamespaceOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>, IEquatable<INamedType>

Properties

Name Description
BaseType

Gets or sets the type from which the current type derives.

IsClosed

Gets or sets a value indicating whether the type is declared with the closed modifier of C# 15.

IsPartial

Gets or sets a value indicating whether the type is marked as partial in source code.

IsReadOnly

Gets or sets a value indicating whether the type is declared with the readonly modifier.

IsRef

Gets or sets a value indicating whether the type is declared with the ref modifier, which makes it a type that may live on the stack only.

Methods

Name Description
AddTypeParameter(string)

Adds a generic parameter to the type.

Extension Methods

See Also