Open sandboxFocus

Class ThisAttribute

When applied to a template method parameter, indicates that the introduced parameter should have the this modifier, making the introduced method an extension method.

Inheritance
ThisAttribute
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class ThisAttribute : Attribute
Remarks

Use this attribute on the first parameter of a template method when you want the introduced method to be an extension method. The parameter type determines the extended type.

The introduced method must be static.

Constructors

Name Description
ThisAttribute()

Extension Methods

See Also