183 lines
12 KiB
C#
183 lines
12 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection.Emit
|
|
{
|
|
/// <summary>Defines and represents a constructor of a dynamic class.</summary>
|
|
// Token: 0x0200026D RID: 621
|
|
[Token(Token = "0x200026D")]
|
|
public abstract class ConstructorBuilder : ConstructorInfo
|
|
{
|
|
/// <summary>Gets the attributes for this constructor.</summary>
|
|
/// <returns>The attributes for this constructor.</returns>
|
|
// Token: 0x1700028C RID: 652
|
|
// (get) Token: 0x06001664 RID: 5732 RVA: 0x0000FE10 File Offset: 0x0000E010
|
|
[Token(Token = "0x1700028C")]
|
|
public override MethodAttributes Attributes
|
|
{
|
|
[Token(Token = "0x6001664")]
|
|
[Address(RVA = "0x30B5510", Offset = "0x30B4510", VA = "0x1830B5510", Slot = "22")]
|
|
get
|
|
{
|
|
return MethodAttributes.PrivateScope;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a reference to the <see cref="T:System.Type" /> object for the type that declares this member.</summary>
|
|
/// <returns>The type that declares this member.</returns>
|
|
// Token: 0x1700028D RID: 653
|
|
// (get) Token: 0x06001665 RID: 5733 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700028D")]
|
|
public override Type DeclaringType
|
|
{
|
|
[Token(Token = "0x6001665")]
|
|
[Address(RVA = "0x30B5560", Offset = "0x30B4560", VA = "0x1830B5560", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Retrieves the name of this constructor.</summary>
|
|
/// <returns>The name of this constructor.</returns>
|
|
// Token: 0x1700028E RID: 654
|
|
// (get) Token: 0x06001666 RID: 5734 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700028E")]
|
|
public override string Name
|
|
{
|
|
[Token(Token = "0x6001666")]
|
|
[Address(RVA = "0x30B55E0", Offset = "0x30B45E0", VA = "0x1830B55E0", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the parameters of this constructor.</summary>
|
|
/// <returns>An array that represents the parameters of this constructor.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">
|
|
/// <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" /> has not been called on this constructor's type, in the .NET Framework versions 1.0 and 1.1.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">
|
|
/// <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" /> has not been called on this constructor's type, in the .NET Framework version 2.0.</exception>
|
|
// Token: 0x06001667 RID: 5735 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001667")]
|
|
[Address(RVA = "0x30B5430", Offset = "0x30B4430", VA = "0x1830B5430", Slot = "19")]
|
|
public override ParameterInfo[] GetParameters()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the internal handle for the method. Use this handle to access the underlying metadata handle.</summary>
|
|
/// <returns>The internal handle for the method. Use this handle to access the underlying metadata handle.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This property is not supported on this class.</exception>
|
|
// Token: 0x1700028F RID: 655
|
|
// (get) Token: 0x06001668 RID: 5736 RVA: 0x0000FE28 File Offset: 0x0000E028
|
|
[Token(Token = "0x1700028F")]
|
|
public override RuntimeMethodHandle MethodHandle
|
|
{
|
|
[Token(Token = "0x6001668")]
|
|
[Address(RVA = "0x30B55B0", Offset = "0x30B45B0", VA = "0x1830B55B0", Slot = "21")]
|
|
get
|
|
{
|
|
return default(RuntimeMethodHandle);
|
|
}
|
|
}
|
|
|
|
/// <summary>Holds a reference to the <see cref="T:System.Type" /> object from which this object was obtained.</summary>
|
|
/// <returns>The <see langword="Type" /> object from which this object was obtained.</returns>
|
|
// Token: 0x17000290 RID: 656
|
|
// (get) Token: 0x06001669 RID: 5737 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000290")]
|
|
public override Type ReflectedType
|
|
{
|
|
[Token(Token = "0x6001669")]
|
|
[Address(RVA = "0x30B5630", Offset = "0x30B4630", VA = "0x1830B5630", Slot = "10")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns all the custom attributes defined for this constructor.</summary>
|
|
/// <param name="inherit">Controls inheritance of custom attributes from base classes. This parameter is ignored.</param>
|
|
/// <returns>An array of objects representing all the custom attributes of the constructor represented by this <see cref="T:System.Reflection.Emit.ConstructorBuilder" /> instance.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not currently supported.</exception>
|
|
// Token: 0x0600166A RID: 5738 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600166A")]
|
|
[Address(RVA = "0x30B53A0", Offset = "0x30B43A0", VA = "0x1830B53A0", 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">Controls inheritance of custom attributes from base classes. This parameter is ignored.</param>
|
|
/// <returns>An object array that represents the attributes of this constructor.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not currently supported.</exception>
|
|
// Token: 0x0600166B RID: 5739 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600166B")]
|
|
[Address(RVA = "0x30B53D0", Offset = "0x30B43D0", VA = "0x1830B53D0", Slot = "13")]
|
|
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the method implementation flags for this constructor.</summary>
|
|
/// <returns>The method implementation flags for this constructor.</returns>
|
|
// Token: 0x0600166C RID: 5740 RVA: 0x0000FE40 File Offset: 0x0000E040
|
|
[Token(Token = "0x600166C")]
|
|
[Address(RVA = "0x30B5400", Offset = "0x30B4400", VA = "0x1830B5400", Slot = "20")]
|
|
public override MethodImplAttributes GetMethodImplementationFlags()
|
|
{
|
|
return MethodImplAttributes.IL;
|
|
}
|
|
|
|
/// <summary>Dynamically invokes the constructor reflected by this instance with the specified arguments, under the constraints of the specified <see langword="Binder" />.</summary>
|
|
/// <param name="obj">The object that needs to be reinitialized.</param>
|
|
/// <param name="invokeAttr">One of the <see langword="BindingFlags" /> values that specifies the type of binding that is desired.</param>
|
|
/// <param name="binder">A <see langword="Binder" /> that defines a set of properties and enables the binding, coercion of argument types, and invocation of members using reflection. If <paramref name="binder" /> is <see langword="null" />, then Binder.DefaultBinding is used.</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 constructor to be invoked. If there are no parameters, this should be a null reference (<see langword="Nothing" /> in Visual Basic).</param>
|
|
/// <param name="culture">A <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.</param>
|
|
/// <returns>An instance of the class associated with the constructor.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. You can retrieve the constructor using <see cref="M:System.Type.GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Reflection.ConstructorInfo.Invoke(System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" /> on the returned <see cref="T:System.Reflection.ConstructorInfo" />.</exception>
|
|
// Token: 0x0600166D RID: 5741 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600166D")]
|
|
[Address(RVA = "0x30B5480", Offset = "0x30B4480", VA = "0x1830B5480", Slot = "23")]
|
|
public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Dynamically invokes the constructor represented by this instance on the given object, passing along the specified parameters, and under the constraints of the given binder.</summary>
|
|
/// <param name="invokeAttr">This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" />, such as InvokeMethod, NonPublic, and so on.</param>
|
|
/// <param name="binder">An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see langword="MemberInfo" /> objects using reflection. If binder is <see langword="null" />, the default binder is used. 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 constructor 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. (For example, this is necessary to 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>The value returned by the invoked constructor.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not currently supported. You can retrieve the constructor using <see cref="M:System.Type.GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])" /> and call <see cref="M:System.Reflection.ConstructorInfo.Invoke(System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" /> on the returned <see cref="T:System.Reflection.ConstructorInfo" />.</exception>
|
|
// Token: 0x0600166E RID: 5742 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600166E")]
|
|
[Address(RVA = "0x30B54B0", Offset = "0x30B44B0", VA = "0x1830B54B0", Slot = "43")]
|
|
public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Checks if the specified custom attribute type is defined.</summary>
|
|
/// <param name="attributeType">A custom attribute type.</param>
|
|
/// <param name="inherit">Controls inheritance of custom attributes from base classes. This parameter is ignored.</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. You can retrieve the constructor using <see cref="M:System.Type.GetConstructor(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.ConstructorInfo" />.</exception>
|
|
// Token: 0x0600166F RID: 5743 RVA: 0x0000FE58 File Offset: 0x0000E058
|
|
[Token(Token = "0x600166F")]
|
|
[Address(RVA = "0x30B54E0", Offset = "0x30B44E0", VA = "0x1830B54E0", Slot = "14")]
|
|
public override bool IsDefined(Type attributeType, bool inherit)
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
}
|