MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIDeclarationContaining­Declaration
Open sandboxFocus

IDeclaration.ContainingDeclaration Property

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