Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Reflection/ConstructorInfo.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

150 lines
10 KiB
C#

using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Discovers the attributes of a class constructor and provides access to constructor metadata.</summary>
// Token: 0x0200023C RID: 572
[Token(Token = "0x200023C")]
[ComDefaultInterface(typeof(_ConstructorInfo))]
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
[Serializable]
public abstract class ConstructorInfo : MethodBase, _ConstructorInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.ConstructorInfo" /> class.</summary>
// Token: 0x0600149D RID: 5277 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600149D")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
protected ConstructorInfo()
{
}
/// <summary>Gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a constructor.</summary>
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a constructor.</returns>
// Token: 0x17000221 RID: 545
// (get) Token: 0x0600149E RID: 5278 RVA: 0x0000F1E0 File Offset: 0x0000D3E0
[Token(Token = "0x17000221")]
[ComVisible(true)]
public override MemberTypes MemberType
{
[Token(Token = "0x600149E")]
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "7")]
get
{
return (MemberTypes)0;
}
}
/// <summary>Invokes the constructor reflected by the instance that has the specified parameters, providing default values for the parameters not commonly used.</summary>
/// <param name="parameters">An array of values that matches the number, order and type (under the constraints of the default binder) of the parameters for this constructor. If this constructor takes no parameters, then use either an array with zero elements or <see langword="null" />, as in Object[] parameters = new Object[0]. Any object in this array that is not explicitly initialized with a value will contain the default value for that object type. For reference-type elements, this value is <see langword="null" />. For value-type elements, this value is 0, 0.0, or <see langword="false" />, depending on the specific element type.</param>
/// <returns>An instance of the class associated with the constructor.</returns>
/// <exception cref="T:System.MemberAccessException">The class is abstract.
/// -or-
/// The constructor is a class initializer.</exception>
/// <exception cref="T:System.MethodAccessException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.MemberAccessException" />, instead.
///
///
///
///
/// The constructor is private or protected, and the caller lacks <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.MemberAccess" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="parameters" /> array does not contain values that match the types accepted by this constructor.</exception>
/// <exception cref="T:System.Reflection.TargetInvocationException">The invoked constructor throws an exception.</exception>
/// <exception cref="T:System.Reflection.TargetParameterCountException">An incorrect number of parameters was passed.</exception>
/// <exception cref="T:System.NotSupportedException">Creation of <see cref="T:System.TypedReference" />, <see cref="T:System.ArgIterator" />, and <see cref="T:System.RuntimeArgumentHandle" /> types is not supported.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the necessary code access permission.</exception>
// Token: 0x0600149F RID: 5279 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600149F")]
[Address(RVA = "0x2A03520", Offset = "0x2A02320", VA = "0x182A03520")]
[DebuggerHidden]
[DebuggerStepThrough]
public object Invoke(object[] parameters)
{
return null;
}
/// <summary>When implemented in a derived class, invokes the constructor reflected by this <see langword="ConstructorInfo" /> with the specified arguments, under the constraints of the specified <see langword="Binder" />.</summary>
/// <param name="invokeAttr">One of the <see langword="BindingFlags" /> values that specifies the type of binding.</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 <see langword="Binder.DefaultBinding" /> is used.</param>
/// <param name="parameters">An array of type <see langword="Object" /> used to match the number, order and type of the parameters for this constructor, under the constraints of <paramref name="binder" />. If this constructor does not require parameters, pass an array with zero elements, as in Object[] parameters = new Object[0]. Any object in this array that is not explicitly initialized with a value will contain the default value for that object type. For reference-type elements, this value is <see langword="null" />. For value-type elements, this value is 0, 0.0, or <see langword="false" />, depending on the specific element type.</param>
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> used to govern the coercion of types. If this is <see langword="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.ArgumentException">The <paramref name="parameters" /> array does not contain values that match the types accepted by this constructor, under the constraints of the <paramref name="binder" />.</exception>
/// <exception cref="T:System.Reflection.TargetInvocationException">The invoked constructor throws an exception.</exception>
/// <exception cref="T:System.Reflection.TargetParameterCountException">An incorrect number of parameters was passed.</exception>
/// <exception cref="T:System.NotSupportedException">Creation of <see cref="T:System.TypedReference" />, <see cref="T:System.ArgIterator" />, and <see cref="T:System.RuntimeArgumentHandle" /> types is not supported.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the necessary code access permissions.</exception>
/// <exception cref="T:System.MemberAccessException">The class is abstract.
/// -or-
/// The constructor is a class initializer.</exception>
/// <exception cref="T:System.MethodAccessException">The constructor is private or protected, and the caller lacks <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.MemberAccess" />.</exception>
// Token: 0x060014A0 RID: 5280
[Token(Token = "0x60014A0")]
[Address(Slot = "43")]
public abstract object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
/// <param name="obj">An object to compare with this instance, or <see langword="null" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060014A1 RID: 5281 RVA: 0x0000F1F8 File Offset: 0x0000D3F8
[Token(Token = "0x60014A1")]
[Address(RVA = "0x1746070", Offset = "0x1744E70", VA = "0x181746070", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
// Token: 0x060014A2 RID: 5282 RVA: 0x0000F210 File Offset: 0x0000D410
[Token(Token = "0x60014A2")]
[Address(RVA = "0x2A02170", Offset = "0x2A00F70", VA = "0x182A02170", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.ConstructorInfo" /> objects are equal.</summary>
/// <param name="left">The first <see cref="T:System.Reflection.ConstructorInfo" /> to compare.</param>
/// <param name="right">The second <see cref="T:System.Reflection.ConstructorInfo" /> to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is equal to <paramref name="right" />; otherwise <see langword="false" />.</returns>
// Token: 0x060014A3 RID: 5283 RVA: 0x0000F228 File Offset: 0x0000D428
[Token(Token = "0x60014A3")]
[Address(RVA = "0x2954E10", Offset = "0x2953C10", VA = "0x182954E10")]
public static bool operator ==(ConstructorInfo left, ConstructorInfo right)
{
return default(bool);
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.ConstructorInfo" /> objects are not equal.</summary>
/// <param name="left">The first <see cref="T:System.Reflection.ConstructorInfo" /> to compare.</param>
/// <param name="right">The second <see cref="T:System.Reflection.ConstructorInfo" /> to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is not equal to <paramref name="right" />; otherwise <see langword="false" />.</returns>
// Token: 0x060014A4 RID: 5284 RVA: 0x0000F240 File Offset: 0x0000D440
[Token(Token = "0x60014A4")]
[Address(RVA = "0x2954E60", Offset = "0x2953C60", VA = "0x182954E60")]
public static bool operator !=(ConstructorInfo left, ConstructorInfo right)
{
return default(bool);
}
/// <summary>Represents the name of the class constructor method as it is stored in metadata. This name is always ".ctor". This field is read-only.</summary>
// Token: 0x04000B18 RID: 2840
[Token(Token = "0x4000B18")]
[ComVisible(true)]
public static readonly string ConstructorName;
/// <summary>Represents the name of the type constructor method as it is stored in metadata. This name is always ".cctor". This property is read-only.</summary>
// Token: 0x04000B19 RID: 2841
[Token(Token = "0x4000B19")]
[ComVisible(true)]
public static readonly string TypeConstructorName;
}
}