IMethodSymbol.IsExtensionMethod Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.