Open sandboxFocus

Property AllowExtensionBlockMembers

AllowExtensionBlockMembers

Gets or sets a value indicating whether C# 14 extension block members are allowed.

Declaration
public bool AllowExtensionBlockMembers { get; set; }
Property Value
Type Description
bool
Remarks

The default value is false: instances multicast from an outer declaration are not applied to the static methods that implement the members of C# 14 extension blocks. Set this property to true to make these members eligible for every usage of the attribute. Aspect users can override this value with AllowExtensionBlockMembers.

See Also