Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Reflection/Emit/MethodBuilder.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

210 lines
14 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.Reflection.Emit
{
/// <summary>Defines and represents a method (or constructor) on a dynamic class.</summary>
// Token: 0x02000276 RID: 630
[Token(Token = "0x2000276")]
public abstract class MethodBuilder : MethodInfo
{
/// <summary>Retrieves the attributes for this method.</summary>
/// <returns>Read-only. Retrieves the <see langword="MethodAttributes" /> for this method.</returns>
// Token: 0x170002A9 RID: 681
// (get) Token: 0x060016C9 RID: 5833 RVA: 0x000100B0 File Offset: 0x0000E2B0
[Token(Token = "0x170002A9")]
public override MethodAttributes Attributes
{
[Token(Token = "0x60016C9")]
[Address(RVA = "0x30BC8B0", Offset = "0x30BB8B0", VA = "0x1830BC8B0", Slot = "22")]
get
{
return MethodAttributes.PrivateScope;
}
}
/// <summary>Returns the type that declares this method.</summary>
/// <returns>Read-only. The type that declares this method.</returns>
// Token: 0x170002AA RID: 682
// (get) Token: 0x060016CA RID: 5834 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002AA")]
public override Type DeclaringType
{
[Token(Token = "0x60016CA")]
[Address(RVA = "0x30BC900", Offset = "0x30BB900", VA = "0x1830BC900", Slot = "9")]
get
{
return null;
}
}
/// <summary>Retrieves the name of this method.</summary>
/// <returns>Read-only. Retrieves a string containing the simple name of this method.</returns>
// Token: 0x170002AB RID: 683
// (get) Token: 0x060016CB RID: 5835 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002AB")]
public override string Name
{
[Token(Token = "0x60016CB")]
[Address(RVA = "0x30BC980", Offset = "0x30BB980", VA = "0x1830BC980", Slot = "8")]
get
{
return null;
}
}
/// <summary>Sets the number of generic type parameters for the current method, specifies their names, and returns an array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects that can be used to define their constraints.</summary>
/// <param name="names">An array of strings that represent the names of the generic type parameters.</param>
/// <returns>An array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects representing the type parameters of the generic method.</returns>
/// <exception cref="T:System.InvalidOperationException">Generic type parameters have already been defined for this method.
/// -or-
/// The method has been completed already.
/// -or-
/// The <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method has been called for the current method.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="names" /> is <see langword="null" />.
/// -or-
/// An element of <paramref name="names" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="names" /> is an empty array.</exception>
// Token: 0x060016CC RID: 5836 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016CC")]
[Address(RVA = "0x30BC6A0", Offset = "0x30BB6A0", VA = "0x1830BC6A0")]
public GenericTypeParameterBuilder[] DefineGenericParameters(string[] names)
{
return null;
}
/// <summary>Returns an <see langword="ILGenerator" /> for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes.</summary>
/// <returns>Returns an <see langword="ILGenerator" /> object for this method.</returns>
/// <exception cref="T:System.InvalidOperationException">The method should not have a body because of its <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags, for example because it has the <see cref="F:System.Reflection.MethodAttributes.PinvokeImpl" /> flag.
/// -or-
/// The method is a generic method, but not a generic method definition. That is, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
// Token: 0x060016CD RID: 5837 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016CD")]
[Address(RVA = "0x30BC780", Offset = "0x30BB780", VA = "0x1830BC780")]
public ILGenerator GetILGenerator()
{
return null;
}
/// <summary>Returns the parameters of this method.</summary>
/// <returns>An array of <see langword="ParameterInfo" /> objects that represent the parameters of the method.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see langword="GetParameters" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x060016CE RID: 5838 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016CE")]
[Address(RVA = "0x30BC800", Offset = "0x30BB800", VA = "0x1830BC800", Slot = "19")]
public override ParameterInfo[] GetParameters()
{
return null;
}
/// <summary>Retrieves the internal handle for the method. Use this handle to access the underlying metadata handle.</summary>
/// <returns>Read-only. The internal handle for the method. Use this handle to access the underlying metadata handle.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="P:System.Reflection.MethodBase.MethodHandle" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x170002AC RID: 684
// (get) Token: 0x060016CF RID: 5839 RVA: 0x000100C8 File Offset: 0x0000E2C8
[Token(Token = "0x170002AC")]
public override RuntimeMethodHandle MethodHandle
{
[Token(Token = "0x60016CF")]
[Address(RVA = "0x30BC950", Offset = "0x30BB950", VA = "0x1830BC950", Slot = "21")]
get
{
return default(RuntimeMethodHandle);
}
}
/// <summary>Retrieves the class that was used in reflection to obtain this object.</summary>
/// <returns>Read-only. The type used to obtain this method.</returns>
// Token: 0x170002AD RID: 685
// (get) Token: 0x060016D0 RID: 5840 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002AD")]
public override Type ReflectedType
{
[Token(Token = "0x60016D0")]
[Address(RVA = "0x30BC9D0", Offset = "0x30BB9D0", VA = "0x1830BC9D0", Slot = "10")]
get
{
return null;
}
}
/// <summary>Return the base implementation for a method.</summary>
/// <returns>The base implementation of this method.</returns>
// Token: 0x060016D1 RID: 5841 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016D1")]
[Address(RVA = "0x30BC6F0", Offset = "0x30BB6F0", VA = "0x1830BC6F0", Slot = "44")]
public override MethodInfo GetBaseDefinition()
{
return null;
}
/// <summary>Returns all the custom attributes defined for this method.</summary>
/// <param name="inherit">Specifies whether to search this member's inheritance chain to find the custom attributes.</param>
/// <returns>Returns an array of objects representing all the custom attributes of this method.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Reflection.MemberInfo.GetCustomAttributes(System.Boolean)" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x060016D2 RID: 5842 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016D2")]
[Address(RVA = "0x30BC720", Offset = "0x30BB720", VA = "0x1830BC720", Slot = "12")]
public override object[] GetCustomAttributes(bool inherit)
{
return null;
}
/// <summary>Returns the custom attributes identified by the given type.</summary>
/// <param name="attributeType">The custom attribute type.</param>
/// <param name="inherit">Specifies whether to search this member's inheritance chain to find the custom attributes.</param>
/// <returns>Returns an array of objects representing the attributes of this method that are of type <paramref name="attributeType" />.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Reflection.MemberInfo.GetCustomAttributes(System.Boolean)" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x060016D3 RID: 5843 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016D3")]
[Address(RVA = "0x30BC750", Offset = "0x30BB750", VA = "0x1830BC750", Slot = "13")]
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
{
return null;
}
/// <summary>Returns the implementation flags for the method.</summary>
/// <returns>Returns the implementation flags for the method.</returns>
// Token: 0x060016D4 RID: 5844 RVA: 0x000100E0 File Offset: 0x0000E2E0
[Token(Token = "0x60016D4")]
[Address(RVA = "0x30BC7D0", Offset = "0x30BB7D0", VA = "0x1830BC7D0", Slot = "20")]
public override MethodImplAttributes GetMethodImplementationFlags()
{
return MethodImplAttributes.IL;
}
/// <summary>Dynamically invokes the method reflected by this instance on the given object, passing along the specified parameters, and under the constraints of the given binder.</summary>
/// <param name="obj">The object on which to invoke the specified method. If the method is static, this parameter is ignored.</param>
/// <param name="invokeAttr">This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" /> : <see langword="InvokeMethod" />, <see langword="NonPublic" />, and so on.</param>
/// <param name="binder">An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is <see langword="null" />, the default binder is used. For more details, see <see cref="T:System.Reflection.Binder" />.</param>
/// <param name="parameters">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 should be <see langword="null" />.</param>
/// <param name="culture">An instance of <see cref="T:System.Globalization.CultureInfo" /> used to govern the coercion of types. If this is null, the <see cref="T:System.Globalization.CultureInfo" /> for the current thread is used. (Note that this is necessary to, for example, convert a <see cref="T:System.String" /> that represents 1000 to a <see cref="T:System.Double" /> value, since 1000 is represented differently by different cultures.)</param>
/// <returns>Returns an object containing the return value of the invoked method.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Type.InvokeMember(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object,System.Object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,System.String[])" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x060016D5 RID: 5845 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60016D5")]
[Address(RVA = "0x30BC850", Offset = "0x30BB850", VA = "0x1830BC850", Slot = "23")]
public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
{
return null;
}
/// <summary>Checks if the specified custom attribute type is defined.</summary>
/// <param name="attributeType">The custom attribute type.</param>
/// <param name="inherit">Specifies whether to search this member's inheritance chain to find the custom attributes.</param>
/// <returns>
/// <see langword="true" /> if the specified custom attribute type is defined; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. Retrieve the method using <see cref="M:System.Type.GetMethod(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Reflection.MemberInfo.IsDefined(System.Type,System.Boolean)" /> on the returned <see cref="T:System.Reflection.MethodInfo" />.</exception>
// Token: 0x060016D6 RID: 5846 RVA: 0x000100F8 File Offset: 0x0000E2F8
[Token(Token = "0x60016D6")]
[Address(RVA = "0x30BC880", Offset = "0x30BB880", VA = "0x1830BC880", Slot = "14")]
public override bool IsDefined(Type attributeType, bool inherit)
{
return default(bool);
}
}
}