210 return runtimeMethodInfo.m_handle ==
m_handle;
265 return base.GetHashCode();
316 if (attributeType ==
null)
330 if (attributeType ==
null)
370 if (
array.Length == 0)
384 [
RequiresUnreferencedCode(
"Trimming may change method bodies. For example it can change some instructions, remove branches or local variables.")]
390 methodBody._methodBase =
this;
452 int num = ((parameters !=
null) ? parameters.Length : 0);
465 for (
int i = 0; i <
arguments.Length; i++)
550 [
RequiresUnreferencedCode(
"If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimming can't validate that the requirements of those annotations are met.")]
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static Delegate CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, object firstArgument, DelegateBindingFlags flags)
static object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit)
static bool IsDefined(RuntimeType type, RuntimeType caType, bool inherit)
static MethodInfo MakeGenericMethod(MethodInfo method, Type[] inst)
virtual Type[] GetParameterTypes()
static void AppendParameters(ref ValueStringBuilder sbParamList, Type[] parameterTypes, CallingConventions callingConvention)
Span< object > CheckArguments(ref StackAllocedArguments stackArgs, ReadOnlySpan< object > parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
static IList< CustomAttributeData > GetCustomAttributesInternal(RuntimeType target)
RuntimeType.RuntimeTypeCache m_reflectedTypeCache
override ParameterInfo[] GetParametersNoCopy()
override bool IsGenericMethodDefinition
override bool IsSecuritySafeCritical
override MethodInfo GetBaseDefinition()
RuntimeModule GetRuntimeModule()
ParameterInfo[] m_parameters
override bool IsSecurityTransparent
override bool HasSameMetadataDefinitionAs(MemberInfo other)
override int GetHashCode()
RuntimeType GetDeclaringTypeInternal()
MethodAttributes m_methodAttributes
override Type[] GetGenericArguments()
override bool IsCollectible
override MethodAttributes Attributes
BindingFlags m_bindingFlags
RuntimeMethodInfo(RuntimeMethodHandleInternal handle, RuntimeType declaringType, RuntimeType.RuntimeTypeCache reflectedTypeCache, MethodAttributes methodAttributes, BindingFlags bindingFlags, object keepalive)
override MethodBody GetMethodBody()
override object[] GetCustomAttributes(bool inherit)
RuntimeType GetRuntimeType()
override Delegate CreateDelegate(Type delegateType, object target)
ParameterInfo[] FetchNonReturnParameters()
override RuntimeMethodHandle MethodHandle
override IList< CustomAttributeData > GetCustomAttributesData()
override string ToString()
void ThrowNoInvokeException()
object InvokeOneParameter(object obj, BindingFlags invokeAttr, Binder binder, object parameter, CultureInfo culture)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
override Delegate CreateDelegate(Type delegateType)
INVOCATION_FLAGS m_invocationFlags
override Type ReflectedType
override ParameterInfo[] GetParameters()
override bool IsDefined(Type attributeType, bool inherit)
override Type DeclaringType
INVOCATION_FLAGS InvocationFlags
RuntimeType ReflectedTypeInternal
override bool CacheEquals(object o)
override bool ContainsGenericParameters
RuntimeMethodInfo GetParentDefinition()
RuntimeType m_declaringType
ParameterInfo m_returnParameter
override int GenericParameterCount
override MethodInfo MakeGenericMethod(params Type[] methodInstantiation)
override ICustomAttributeProvider ReturnTypeCustomAttributes
override bool IsGenericMethod
override ParameterInfo ReturnParameter
ParameterInfo FetchReturnParameter()
override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
override MethodImplAttributes GetMethodImplementationFlags()
override MethodInfo GetGenericMethodDefinition()
override bool IsSecurityCritical
RuntimeType[] GetGenericArgumentsInternal()
override bool Equals(object obj)
override MemberTypes MemberType
Delegate CreateDelegateInternal(Type delegateType, object firstArgument, DelegateBindingFlags bindingFlags)
void CheckConsistency(object target)
static MethodBase InternalGetCurrentMethod(ref StackCrawlMark stackMark)
static bool IsDisallowedByRefType(Type type)
static ParameterInfo GetReturnParameter(IRuntimeMethodInfo method, MemberInfo member, Signature sig)
static ParameterInfo[] GetParameters(IRuntimeMethodInfo method, MemberInfo member, Signature sig)
override bool IsInstanceOfType([NotNullWhen(true)] object o)
static void SanityCheckGenericArguments(RuntimeType[] genericArguments, RuntimeType[] genericParameters)
RuntimeModule GetRuntimeModule()
static void ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e)
static MethodBase GetMethodBase(RuntimeModule scope, int typeMetadataToken)
static string Arg_NotGenericMethodDefinition
static string Arg_MustBeType
static string NotSupported_ByRefToVoidReturn
static string Arg_UnboundGenParam
static string Format(string resourceFormat, object p1)
static string RFLCT_Targ_ITargMismatch
static string Arg_MustBeDelegate
static string Arg_DlgtTargMeth
static string Arg_ParmCnt
static string RFLCT_Targ_StatMethReqTarg
static string NotSupported_ByRefToByRefLikeReturn
static string Argument_MustBeRuntimeType
CallingConventions CallingConvention
static void Write(ref bool location, bool value)
static readonly Type[] EmptyTypes
static int GetHashCodeOfPtr(IntPtr ptr)
static int GetMethodDef(IRuntimeMethodInfo method)
static RuntimeType[] GetMethodInstantiationInternal(IRuntimeMethodInfo method)
static int GetGenericParameterCount(RuntimeMethodHandleInternal method)
static Type[] GetMethodInstantiationPublic(IRuntimeMethodInfo method)
static IRuntimeMethodInfo GetCurrentMethod(ref StackCrawlMark stackMark)
static bool HasMethodInstantiation(RuntimeMethodHandleInternal method)
static Interop.BOOL GetIsCollectible(RuntimeMethodHandleInternal handle)
static void StripMethodInstantiation(RuntimeMethodHandleInternal method, ObjectHandleOnStack outMethod)
static string GetName(RuntimeMethodHandleInternal method)
static MethodImplAttributes GetImplAttributes(IRuntimeMethodInfo method)
static void ConstructInstantiation(RuntimeMethodHandleInternal method, TypeNameFormatFlags format, StringHandleOnStack retString)
static RuntimeMethodBody GetMethodBody(IRuntimeMethodInfo method, RuntimeType declaringType)
static int GetSlot(RuntimeMethodHandleInternal method)
static object InvokeMethod(object target, in Span< object > arguments, Signature sig, bool constructor, bool wrapExceptions)
static bool IsGenericMethodDefinition(RuntimeMethodHandleInternal method)
static RuntimeMethodHandleInternal GetStubIfNeeded(RuntimeMethodHandleInternal method, RuntimeType declaringType, RuntimeType[] methodInstantiation)
static RuntimeMethodHandleInternal GetMethodAt(RuntimeType type, int slot)
static int GetNumVirtuals(RuntimeType type)