MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeAttribute­ExtensionsTry­Construct
Open sandboxFocus

AttributeExtensions.TryConstruct Method

TryConstruct(IAttribute, ScopedDiagnosticSink, out Attribute)

Tries to construct an instance of the attribute represented by the current IAttribute. The attribute type must not be a run-time-only type.

Declaration
public static bool TryConstruct(this IAttribute attribute, ScopedDiagnosticSink diagnosticSink, out Attribute constructedAttribute)
Parameters
Type Name Description
IAttribute attribute
ScopedDiagnosticSink diagnosticSink
Attribute constructedAttribute
Returns
Type Description
Boolean