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
-
AnyMemberInfoMethodBaseMethodInfo
Propiedades
property ReturnType: System.Type
#
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>
#
Miembros privados e internos (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).
Miembros heredados (12)
GetParametersmétodo de MethodBaseGetCustomAttributesmétodo de MemberInfoGetCustomAttributesmétodo de MemberInfoIsDefinedmétodo de MemberInfoNamepropiedad de MemberInfoDeclaringTypepropiedad de MemberInfoIsPublicpropiedad de MemberInfoIsStaticpropiedad de MemberInfoGetTypemétodo de AnyUndescribedmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
MethodInfo en Larva HIR, descompilado a partir de su 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
}