Share via


IMethodSymbol.IsExtensionMethod Property

Definition

Returns true if this method is a "classic" extension method (using the this modifier in C# or ExtensionAttribute in VB).

public:
 property bool IsExtensionMethod { bool get(); };
public bool IsExtensionMethod { get; }
member this.IsExtensionMethod : bool
Public ReadOnly Property IsExtensionMethod As Boolean

Property Value

Remarks

Returns false for methods in extension() blocks. To check if a method is a "new" extension method (a member of an extension() block), check IsExtension on the method's ContainingType.

Applies to