Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Reflection/Emit/MethodBuilder.cs
T
2026-04-10 22:50:51 +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: 0x0200026F RID: 623
[Token(Token = "0x200026F")]
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: 0x1700029E RID: 670
// (get) Token: 0x0600168A RID: 5770 RVA: 0x0000FD50 File Offset: 0x0000DF50
[Token(Token = "0x1700029E")]
public override MethodAttributes Attributes
{
[Token(Token = "0x600168A")]
[Address(RVA = "0x2A0AC30", Offset = "0x2A09A30", VA = "0x182A0AC30", 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: 0x1700029F RID: 671
// (get) Token: 0x0600168B RID: 5771 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700029F")]
public override Type DeclaringType
{
[Token(Token = "0x600168B")]
[Address(RVA = "0x2A0AC80", Offset = "0x2A09A80", VA = "0x182A0AC80", 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: 0x170002A0 RID: 672
// (get) Token: 0x0600168C RID: 5772 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002A0")]
public override string Name
{
[Token(Token = "0x600168C")]
[Address(RVA = "0x2A0AD00", Offset = "0x2A09B00", VA = "0x182A0AD00", 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: 0x0600168D RID: 5773 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600168D")]
[Address(RVA = "0x2A0AA20", Offset = "0x2A09820", VA = "0x182A0AA20")]
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: 0x0600168E RID: 5774 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600168E")]
[Address(RVA = "0x2A0AB00", Offset = "0x2A09900", VA = "0x182A0AB00")]
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: 0x0600168F RID: 5775 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600168F")]
[Address(RVA = "0x2A0AB80", Offset = "0x2A09980", VA = "0x182A0AB80", 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: 0x170002A1 RID: 673
// (get) Token: 0x06001690 RID: 5776 RVA: 0x0000FD68 File Offset: 0x0000DF68
[Token(Token = "0x170002A1")]
public override RuntimeMethodHandle MethodHandle
{
[Token(Token = "0x6001690")]
[Address(RVA = "0x2A0ACD0", Offset = "0x2A09AD0", VA = "0x182A0ACD0", 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: 0x170002A2 RID: 674
// (get) Token: 0x06001691 RID: 5777 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002A2")]
public override Type ReflectedType
{
[Token(Token = "0x6001691")]
[Address(RVA = "0x2A0AD50", Offset = "0x2A09B50", VA = "0x182A0AD50", Slot = "10")]
get
{
return null;
}
}
/// <summary>Return the base implementation for a method.</summary>
/// <returns>The base implementation of this method.</returns>
// Token: 0x06001692 RID: 5778 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001692")]
[Address(RVA = "0x2A0AA70", Offset = "0x2A09870", VA = "0x182A0AA70", 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: 0x06001693 RID: 5779 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001693")]
[Address(RVA = "0x2A0AAA0", Offset = "0x2A098A0", VA = "0x182A0AAA0", 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: 0x06001694 RID: 5780 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001694")]
[Address(RVA = "0x2A0AAD0", Offset = "0x2A098D0", VA = "0x182A0AAD0", 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: 0x06001695 RID: 5781 RVA: 0x0000FD80 File Offset: 0x0000DF80
[Token(Token = "0x6001695")]
[Address(RVA = "0x2A0AB50", Offset = "0x2A09950", VA = "0x182A0AB50", 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: 0x06001696 RID: 5782 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001696")]
[Address(RVA = "0x2A0ABD0", Offset = "0x2A099D0", VA = "0x182A0ABD0", 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: 0x06001697 RID: 5783 RVA: 0x0000FD98 File Offset: 0x0000DF98
[Token(Token = "0x6001697")]
[Address(RVA = "0x2A0AC00", Offset = "0x2A09A00", VA = "0x182A0AC00", Slot = "14")]
public override bool IsDefined(Type attributeType, bool inherit)
{
return default(bool);
}
}
}