class · System.Reflection
MethodInfo
public class System.Reflection.MethodInfo : System.Reflection.MethodBase
A method: its result type, and calls through Invoke(target, arguments).
- Kind
- class
- Namespace
- System.Reflection
- Assembly
- System.Core
- Access
- public, final
- Source file
Reflection.ant
Inheritance
- Base classes
-
AnyMemberInfoMethodBaseMethodInfo
Properties
property ReturnType: System.Type
#
A method with its own type parameters (it cannot be called through Invoke).
Methods
method Invoke(target: System.Any?, arguments: System.Any?[]) -> System.Any?
#
Calls the method on target (null for a static method) with arguments: its result, boxed (null for none).
method ToString() -> System.String<u8>
#
Private and internal members (3)
field returnType: System.Type
#
constructor MethodInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, returnType: System.Type, parameters: System.Reflection.ParameterInfo[])
#
method SameAs(other: System.Reflection.MethodInfo) -> bool
#
Whether other is the same method seen from a class below (an override).
Inherited members (12)
GetParametersmethod from MethodBaseGetCustomAttributesmethod from MemberInfoGetCustomAttributesmethod from MemberInfoIsDefinedmethod from MemberInfoNameproperty from MemberInfoDeclaringTypeproperty from MemberInfoIsPublicproperty from MemberInfoIsStaticproperty from MemberInfoGetTypemethod from AnyUndescribedmethod from AnyHashmethod from Anydestroymethod from Any
Source
MethodInfo as Larva HIR, decompiled from its Larva HIR.
// A method: its result type, and calls through `Invoke(target, arguments)`.
public class System.Reflection.MethodInfo : System.Reflection.MethodBase
{
field returnType: System.Type
constructor MethodInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, returnType: System.Type, parameters: System.Reflection.ParameterInfo[])
// Whether `other` is the same method seen from a class below (an override).
method SameAs(other: System.Reflection.MethodInfo) -> bool
// Calls the method on `target` (null for a static method) with `arguments`: its result, boxed (null for none).
method Invoke(target: System.Any?, arguments: System.Any?[]) -> System.Any?
method ToString() -> System.String<u8>
property ReturnType: System.Type
property IsVirtual: bool
property IsAbstract: bool
// A method with its own type parameters (it cannot be called through Invoke).
property IsGenericMethod: bool
}