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, IEquatable<IDeclaration>, IMethodInvoker
Properties
Name | Description |
---|---|
DeclaringMember | Gets the parent property or event when the current IMethod represents a property or event accessor, otherwise |
Definition | Gets the definition of the method. If the current method a generic method instance or a method of a generic type instance, this returns the generic definition. Otherwise, it returns the current instance. |
ExplicitInterfaceImplementations | Gets a list of interface methods that this method explicitly implements. |
IsExtern | Gets a value indicating whether the method has a non-managed implementation, i.e. has the |
IsPartial | Gets a value indicating whether the method is marked as |
IsReadOnly | Gets a value indicating whether the method is |
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 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. |
ToRef() |