85 Array.
Copy(array2, array3, array2.Length);
101 if (attributeType ==
null)
112 return Array.Empty<
object>();
125 if (attributeType ==
null)
143 for (
int i = 0; i <
array.Length; i++)
262 Init(name, attributes, callingConvention, returnType, parameterTypes,
null, m, skipVisibility, transparentMethod:
false);
289 Init(name, attributes, callingConvention, returnType, parameterTypes, owner,
null, skipVisibility, transparentMethod:
false);
332 [MemberNotNull(
"m_parameterTypes")]
333 [MemberNotNull(
"m_returnType")]
334 [MemberNotNull(
"m_dynMethod")]
338 if (signature !=
null)
341 for (
int i = 0; i < signature.Length; i++)
343 if (signature[i] ==
null)
363 if (transparentMethod)
382 runtimeType = owner.UnderlyingSystemType as
RuntimeType;
384 if (runtimeType !=
null)
417 return multicastDelegate;
431 return multicastDelegate;
489 int num2 = ((parameters !=
null) ? parameters.Length : 0);
494 bool wrapExceptions = (invokeAttr &
BindingFlags.DoNotWrapExceptions) == 0;
502 for (
int i = 0; i < arguments.
Length; i++)
504 parameters[i] = arguments[i];
536 array[position].SetAttributes(attributes);
548 byte[] signature =
SignatureHelper.
GetMethodSigHelper(
null, callingConvention, returnType,
null,
null, parameterTypes,
null,
null).GetSignature(appendEndOfSig:
true);
566 byte[] signature =
SignatureHelper.
GetMethodSigHelper(
null, callingConvention, returnType,
null,
null, parameterTypes,
null,
null).GetSignature(appendEndOfSig:
true);
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static Delegate CreateDelegateNoSecurityCheck(Type type, object target, RuntimeMethodHandle method)
static void KeepAlive(object? obj)
void StoreDynamicMethod(MethodInfo dynamicMethod)
override Module ManifestModule
static AssemblyBuilder InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, ref StackCrawlMark stackMark, AssemblyLoadContext assemblyLoadContext, IEnumerable< CustomAttributeBuilder > unsafeAssemblyAttributes)
void GetCallableMethod(RuntimeModule module, DynamicMethod dm)
void GetCallableMethod(RuntimeModule module, DynamicMethod dm)
override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
RuntimeParameterInfo[] m_parameters
MethodAttributes m_attributes
override bool IsDefined(Type attributeType, bool inherit)
RTDynamicMethod(DynamicMethod owner, string name, MethodAttributes attributes, CallingConventions callingConvention)
override ParameterInfo[] GetParameters()
override Type DeclaringType
override ParameterInfo ReturnParameter
override RuntimeMethodHandle MethodHandle
override ICustomAttributeProvider ReturnTypeCustomAttributes
override object[] GetCustomAttributes(bool inherit)
override MethodInfo GetBaseDefinition()
override CallingConventions CallingConvention
override Type ReflectedType
override bool IsSecuritySafeCritical
override MethodImplAttributes GetMethodImplementationFlags()
override string ToString()
override object[] GetCustomAttributes(Type attributeType, bool inherit)
override MethodAttributes Attributes
RuntimeParameterInfo[] LoadParameters()
CallingConventions m_callingConvention
override bool IsSecurityTransparent
override bool IsSecurityCritical
override bool IsSecuritySafeCritical
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Module m)
DynamicILInfo m_DynamicILInfo
ParameterBuilder? DefineParameter(int position, ParameterAttributes attributes, string? parameterName)
override ICustomAttributeProvider ReturnTypeCustomAttributes
override Delegate CreateDelegate(Type delegateType)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
DynamicILGenerator m_ilGenerator
RTDynamicMethod m_dynMethod
DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, Module m, bool skipVisibility)
DynamicILInfo GetDynamicILInfo()
override object[] GetCustomAttributes(bool inherit)
RuntimeMethodHandle GetMethodDescriptor()
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Module m, bool skipVisibility)
override MethodAttributes Attributes
override MethodInfo GetBaseDefinition()
IRuntimeMethodInfo m_methodHandle
override string ToString()
DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, Type owner, bool skipVisibility)
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Type owner)
override bool IsSecurityTransparent
DynamicResolver m_resolver
static readonly object s_anonymouslyHostedDynamicMethodsModuleLock
RuntimeType[] m_parameterTypes
override ParameterInfo[] GetParameters()
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes)
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, Type owner, bool skipVisibility)
override bool IsDefined(Type attributeType, bool inherit)
override? Type DeclaringType
override ParameterInfo ReturnParameter
static RuntimeModule GetDynamicMethodsModule()
override RuntimeMethodHandle MethodHandle
static void CheckConsistency(MethodAttributes attributes, CallingConventions callingConvention)
DynamicMethod(string name, Type? returnType, Type[]? parameterTypes, bool restrictedSkipVisibility)
override Delegate CreateDelegate(Type delegateType, object? target)
MethodInfo GetMethodInfo()
override bool IsSecurityCritical
bool m_restrictedSkipVisibility
void Init(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] signature, Type owner, Module m, bool skipVisibility, bool transparentMethod)
override? Type ReflectedType
override MethodImplAttributes GetMethodImplementationFlags()
override CallingConventions CallingConvention
static volatile InternalModuleBuilder s_anonymouslyHostedDynamicMethodsModule
override? object Invoke(object? obj, BindingFlags invokeAttr, Binder? binder, object?[]? parameters, CultureInfo? culture)
ILGenerator GetILGenerator()
ILGenerator GetILGenerator(int streamSize)
static SignatureHelper GetMethodSigHelper(Module? mod, Type? returnType, Type[]? parameterTypes)
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)
ModuleHandle ModuleHandle
void SetName(string name)
override bool ContainsGenericParameters
RuntimeModule GetRuntimeModule()
override bool IsGenericParameter
static void CompileMethod(RuntimeMethodHandleInternal method)
static string NotSupported_CallToVarArg
static string NotSupported_DynamicMethodFlags
static string Argument_InvalidTypeForDynamicMethod
static string ArgumentOutOfRange_ParamSequence
static string Arg_InvalidTypeInRetType
static string Format(string resourceFormat, object p1)
static string InvalidOperation_NotAllowedInDynamicMethod
static string Argument_MustBeRuntimeMethodInfo
static string Arg_ParmCnt
static string Arg_InvalidTypeInSignature
static string InvalidOperation_BadEmptyMethodBody
virtual bool IsAssignableFrom([NotNullWhen(true)] Type? c)
Type UnderlyingSystemType
RuntimeModule GetRuntimeModule()
static RuntimeMethodHandleInternal EmptyHandle
static object InvokeMethod(object target, in Span< object > arguments, Signature sig, bool constructor, bool wrapExceptions)
override string ToString()