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
Any MemberInfo MethodBase MethodInfo

Properties

property ReturnType: System.Type
#

read-only

property IsVirtual: bool
#

read-only

property IsAbstract: bool
#

read-only

property IsGenericMethod: bool
#

read-only

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>
#

override

Private and internal members (3)

field returnType: System.Type
#

private

constructor MethodInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, returnType: System.Type, parameters: System.Reflection.ParameterInfo[])
#

internal

method SameAs(other: System.Reflection.MethodInfo) -> bool
#

internal

Whether other is the same method seen from a class below (an override).

Inherited members (12)

Source

MethodInfo as Larva HIR, decompiled from its Larva HIR.

System.Reflection.MethodInfo.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
}
Esc