class · System.Reflection

MethodInfo

public class System.Reflection.MethodInfo : System.Reflection.MethodBase

A method: its result type, and calls through Invoke(target, arguments).

Tipo
class
Espacio de nombres
System.Reflection
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Reflection.ant

Herencia

Clases base
Any MemberInfo MethodBase MethodInfo

Propiedades

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).

Métodos

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

Miembros privados e internos (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).

Miembros heredados (12)

Código fuente

MethodInfo en Larva HIR, descompilado a partir de su 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