Interface IMethod
Represents a method, but not a constructor.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IMethod : IMethodBase, IHasParameters, IMember, IGeneric, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable
Properties
Name | Description |
---|---|
DeclaringMember | Gets the parent property or event when the current IMethod represents a property or event accessor, otherwise |
ExplicitInterfaceImplementations | Gets a list of interface methods that this method explicitly implements. |
Invokers | Gets an object that allows to invoke the current method. |
IsExtern | Gets a value indicating whether the method has a non-managed implementation, i.e. has the |
IsReadOnly | Gets a value indicating whether the method is |
MethodDefinition | Gets the method definition with unassigned type parameters. When the current IMethod is neither a generic method instance nor a method of a generic type, returns the current IMethod. |
MethodKind | Gets the kind of method (such as Default or PropertyGet. |
OperatorKind | Gets a value indicating the type of operator the methods represents. |
OverriddenMethod | Gets the base method that is overridden or hidden by the current method. |
ReturnParameter | Gets an object representing the method return type and custom attributes, or |
ReturnType | Gets the method return type. |
Methods
Name | Description |
---|---|
ToMethodInfo() | Gets a MethodInfo that represents the current method at run time. |