using System; using System.Globalization; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System.Reflection.Emit { /// Defines and represents a dynamic method that can be compiled, executed, and discarded. Discarded methods are available for garbage collection. // Token: 0x020006DC RID: 1756 [Token(Token = "0x20006DC")] [ComVisible(true)] public sealed class DynamicMethod : MethodInfo { /// Creates a dynamic method that is global to a module, specifying the method name, return type, parameter types, module, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method. /// The name of the dynamic method. This can be a zero-length string, but it cannot be . /// A object that specifies the return type of the dynamic method, or if the method has no return type. /// An array of objects specifying the types of the parameters of the dynamic method, or if the method has no parameters. /// A representing the module with which the dynamic method is to be logically associated. /// /// to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method. /// An element of is or . /// -or- /// is a module that provides anonymous hosting for dynamic methods. /// /// is . /// -or- /// is . /// /// is a type for which returns . // Token: 0x06003217 RID: 12823 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6003217")] [Address(RVA = "0x2A060E0", Offset = "0x2A04EE0", VA = "0x182A060E0")] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility) { } /// Creates a dynamic method, specifying the method name, return type, parameter types, the type with which the dynamic method is logically associated, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method. /// The name of the dynamic method. This can be a zero-length string, but it cannot be . /// A object that specifies the return type of the dynamic method, or if the method has no return type. /// An array of objects specifying the types of the parameters of the dynamic method, or if the method has no parameters. /// A with which the dynamic method is logically associated. The dynamic method has access to all members of the type. /// /// to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, . /// An element of is or . /// -or- /// is an interface, an array, an open generic type, or a type parameter of a generic type or method. /// /// is . /// -or- /// is . /// /// is , or is a type for which returns . // Token: 0x06003218 RID: 12824 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6003218")] [Address(RVA = "0x2A06110", Offset = "0x2A04F10", VA = "0x182A06110")] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility) { } /// Gets the attributes specified when the dynamic method was created. /// A bitwise combination of the values representing the attributes for the method. // Token: 0x170007BD RID: 1981 // (get) Token: 0x06003219 RID: 12825 RVA: 0x000199B0 File Offset: 0x00017BB0 [Token(Token = "0x170007BD")] public override MethodAttributes Attributes { [Token(Token = "0x6003219")] [Address(RVA = "0x2A06140", Offset = "0x2A04F40", VA = "0x182A06140", Slot = "22")] get { return MethodAttributes.PrivateScope; } } /// Gets the type that declares the method, which is always for dynamic methods. /// Always . // Token: 0x170007BE RID: 1982 // (get) Token: 0x0600321A RID: 12826 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170007BE")] public override Type DeclaringType { [Token(Token = "0x600321A")] [Address(RVA = "0x2A06170", Offset = "0x2A04F70", VA = "0x182A06170", Slot = "9")] get { return null; } } /// Gets or sets a value indicating whether the local variables in the method are zero-initialized. /// /// if the local variables in the method are zero-initialized; otherwise, . The default is . // Token: 0x170007BF RID: 1983 // (set) Token: 0x0600321B RID: 12827 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170007BF")] public bool InitLocals { [Token(Token = "0x600321B")] [Address(RVA = "0x2A06230", Offset = "0x2A05030", VA = "0x182A06230")] set { } } /// Not supported for dynamic methods. /// Not supported for dynamic methods. /// Not allowed for dynamic methods. // Token: 0x170007C0 RID: 1984 // (get) Token: 0x0600321C RID: 12828 RVA: 0x000199C8 File Offset: 0x00017BC8 [Token(Token = "0x170007C0")] public override RuntimeMethodHandle MethodHandle { [Token(Token = "0x600321C")] [Address(RVA = "0x2A061A0", Offset = "0x2A04FA0", VA = "0x182A061A0", Slot = "21")] get { return default(RuntimeMethodHandle); } } /// Gets the name of the dynamic method. /// The simple name of the method. // Token: 0x170007C1 RID: 1985 // (get) Token: 0x0600321D RID: 12829 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170007C1")] public override string Name { [Token(Token = "0x600321D")] [Address(RVA = "0x2A061D0", Offset = "0x2A04FD0", VA = "0x182A061D0", Slot = "8")] get { return null; } } /// Gets the class that was used in reflection to obtain the method. /// Always . // Token: 0x170007C2 RID: 1986 // (get) Token: 0x0600321E RID: 12830 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170007C2")] public override Type ReflectedType { [Token(Token = "0x600321E")] [Address(RVA = "0x2A06200", Offset = "0x2A05000", VA = "0x182A06200", Slot = "10")] get { return null; } } /// Returns the base implementation for the method. /// The base implementation of the method. // Token: 0x0600321F RID: 12831 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600321F")] [Address(RVA = "0x2A05F60", Offset = "0x2A04D60", VA = "0x182A05F60", Slot = "44")] public override MethodInfo GetBaseDefinition() { return null; } /// Returns all the custom attributes defined for the method. /// /// to search the method's inheritance chain to find the custom attributes; to check only the current method. /// An array of objects representing all the custom attributes of the method. // Token: 0x06003220 RID: 12832 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6003220")] [Address(RVA = "0x2A05FC0", Offset = "0x2A04DC0", VA = "0x182A05FC0", Slot = "12")] public override object[] GetCustomAttributes(bool inherit) { return null; } /// Returns the custom attributes of the specified type that have been applied to the method. /// A representing the type of custom attribute to return. /// /// to search the method's inheritance chain to find the custom attributes; to check only the current method. /// An array of objects representing the attributes of the method that are of type or derive from type . /// /// is . // Token: 0x06003221 RID: 12833 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6003221")] [Address(RVA = "0x2A05F90", Offset = "0x2A04D90", VA = "0x182A05F90", Slot = "13")] public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return null; } /// Returns a Microsoft intermediate language (MSIL) generator for the method with a default MSIL stream size of 64 bytes. /// An object for the method. // Token: 0x06003222 RID: 12834 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6003222")] [Address(RVA = "0x2A05FF0", Offset = "0x2A04DF0", VA = "0x182A05FF0")] public ILGenerator GetILGenerator() { return null; } /// Returns the implementation flags for the method. /// A bitwise combination of values representing the implementation flags for the method. // Token: 0x06003223 RID: 12835 RVA: 0x000199E0 File Offset: 0x00017BE0 [Token(Token = "0x6003223")] [Address(RVA = "0x2A06020", Offset = "0x2A04E20", VA = "0x182A06020", Slot = "20")] public override MethodImplAttributes GetMethodImplementationFlags() { return MethodImplAttributes.IL; } /// Returns the parameters of the dynamic method. /// An array of objects that represent the parameters of the dynamic method. // Token: 0x06003224 RID: 12836 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6003224")] [Address(RVA = "0x2A06050", Offset = "0x2A04E50", VA = "0x182A06050", Slot = "19")] public override ParameterInfo[] GetParameters() { return null; } /// Invokes the dynamic method using the specified parameters, under the constraints of the specified binder, with the specified culture information. /// This parameter is ignored for dynamic methods, because they are static. Specify . /// A bitwise combination of values. /// A object that enables the binding, coercion of argument types, invocation of members, and retrieval of objects through reflection. If is , the default binder is used. For more details, see . /// An argument list. This is an array of arguments with the same number, order, and type as the parameters of the method to be invoked. If there are no parameters this parameter should be . /// An instance of used to govern the coercion of types. If this is , the for the current thread is used. For example, this information is needed to correctly convert a that represents 1000 to a value, because 1000 is represented differently by different cultures. /// A containing the return value of the invoked method. /// The calling convention is not supported. /// The number of elements in does not match the number of parameters in the dynamic method. /// The type of one or more elements of does not match the type of the corresponding parameter of the dynamic method. /// The dynamic method is associated with a module, is not anonymously hosted, and was constructed with set to , but the dynamic method accesses members that are not or ( in Visual Basic). /// -or- /// The dynamic method is anonymously hosted and was constructed with set to , but it accesses members that are not . /// -or- /// The dynamic method contains unverifiable code. See the "Verification" section in Remarks for . // Token: 0x06003225 RID: 12837 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6003225")] [Address(RVA = "0x2A06080", Offset = "0x2A04E80", VA = "0x182A06080", Slot = "23")] public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { return null; } /// Indicates whether the specified custom attribute type is defined. /// A representing the type of custom attribute to search for. /// /// to search the method's inheritance chain to find the custom attributes; to check only the current method. /// /// if the specified custom attribute type is defined; otherwise, . // Token: 0x06003226 RID: 12838 RVA: 0x000199F8 File Offset: 0x00017BF8 [Token(Token = "0x6003226")] [Address(RVA = "0x2A060B0", Offset = "0x2A04EB0", VA = "0x182A060B0", Slot = "14")] public override bool IsDefined(Type attributeType, bool inherit) { return default(bool); } } }