Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code / IDeclaration / Containing­Declaration
Open sandbox

Property ContainingDeclaration

ContainingDeclaration

Gets the containing declaration, such as a INamedType for nested types or for methods. For non-nested types, returns the containing assembly (and not the namespace, use Namespace for that).

Declaration
IDeclaration ContainingDeclaration { get; }
Property Value
Type Description
IDeclaration