using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
namespace System.Reflection
{
/// Discovers the attributes of a class constructor and provides access to constructor metadata.
// Token: 0x02000238 RID: 568
[ComVisible(true)]
[ComDefaultInterface(typeof(_ConstructorInfo))]
[ClassInterface(ClassInterfaceType.None)]
[Serializable]
public abstract class ConstructorInfo : MethodBase, _ConstructorInfo
{
/// Maps a set of names to a corresponding set of dispatch identifiers.
/// Reserved for future use. Must be IID_NULL.
/// Passed-in array of names to be mapped.
/// Count of the names to be mapped.
/// The locale context in which to interpret the names.
/// Caller-allocated array which receives the IDs corresponding to the names.
/// Late-bound access using the COM IDispatch interface is not supported.
// Token: 0x06001DC9 RID: 7625 RVA: 0x0006FC64 File Offset: 0x0006DE64
void _ConstructorInfo.GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
{
throw new NotImplementedException();
}
/// Retrieves the type information for an object, which can then be used to get the type information for an interface.
/// The type information to return.
/// The locale identifier for the type information.
/// Receives a pointer to the requested type information object.
/// Late-bound access using the COM IDispatch interface is not supported.
// Token: 0x06001DCA RID: 7626 RVA: 0x0006FC6C File Offset: 0x0006DE6C
void _ConstructorInfo.GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
{
throw new NotImplementedException();
}
/// Retrieves the number of type information interfaces that an object provides (either 0 or 1).
/// Points to a location that receives the number of type information interfaces provided by the object.
/// Late-bound access using the COM IDispatch interface is not supported.
// Token: 0x06001DCB RID: 7627 RVA: 0x0006FC74 File Offset: 0x0006DE74
void _ConstructorInfo.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
}
/// Provides access to properties and methods exposed by an object.
/// Identifies the member.
/// Reserved for future use. Must be IID_NULL.
/// The locale context in which to interpret arguments.
/// Flags describing the context of the call.
/// Pointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
/// Pointer to the location where the result is to be stored.
/// Pointer to a structure that contains exception information.
/// The index of the first argument that has an error.
/// Late-bound access using the COM IDispatch interface is not supported.
// Token: 0x06001DCC RID: 7628 RVA: 0x0006FC7C File Offset: 0x0006DE7C
void _ConstructorInfo.Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
{
throw new NotImplementedException();
}
/// For a description of this member, see .
/// An instance of the type.
/// The instance that created this method.
/// One of the values that specifies the type of binding.
/// A that defines a set of properties and enables the binding, coercion of argument types, and invocation of members using reflection. If is null, then is used.
/// An array of objects used to match the number, order, and type of the parameters for this constructor, under the constraints of . If this constructor does not require parameters, pass an array with zero elements. 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
/// A used to govern the coercion of types. If this is null, the for the current thread is used.
// Token: 0x06001DCD RID: 7629 RVA: 0x0006FC84 File Offset: 0x0006DE84
object _ConstructorInfo.Invoke_2(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
{
return this.Invoke(obj, invokeAttr, binder, parameters, culture);
}
/// For a description of this member, see .
/// An instance of the type.
/// The instance that created this method.
/// An array of objects used to match the number, order, and type of the parameters for this constructor, under the constraints of . If this constructor does not require parameters, pass an array with zero elements. 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
// Token: 0x06001DCE RID: 7630 RVA: 0x0006FC94 File Offset: 0x0006DE94
object _ConstructorInfo.Invoke_3(object obj, object[] parameters)
{
return base.Invoke(obj, parameters);
}
/// For a description of this member, see .
/// An instance of the type.
/// One of the values that specifies the type of binding.
/// A that defines a set of properties and enables the binding, coercion of argument types, and invocation of members using reflection. If is null, then is used.
/// An array of objects used to match the number, order, and type of the parameters for this constructor, under the constraints of . If this constructor does not require parameters, pass an array with zero elements. 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
/// A used to govern the coercion of types. If this is null, the for the current thread is used.
// Token: 0x06001DCF RID: 7631 RVA: 0x0006FCA0 File Offset: 0x0006DEA0
object _ConstructorInfo.Invoke_4(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
{
return this.Invoke(invokeAttr, binder, parameters, culture);
}
/// For a description of this member, see .
/// An instance of the type.
/// An array of objects used to match the number, order, and type of the parameters for this constructor, under the constraints of . If this constructor does not require parameters, pass an array with zero elements. 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
// Token: 0x06001DD0 RID: 7632 RVA: 0x0006FCB0 File Offset: 0x0006DEB0
object _ConstructorInfo.Invoke_5(object[] parameters)
{
return this.Invoke(parameters);
}
/// Gets a value indicating that this member is a constructor.
/// A value indicating that this member is a constructor.
// Token: 0x1700055D RID: 1373
// (get) Token: 0x06001DD1 RID: 7633 RVA: 0x0006FCBC File Offset: 0x0006DEBC
[ComVisible(true)]
public override MemberTypes MemberType
{
get
{
return MemberTypes.Constructor;
}
}
/// Invokes the constructor reflected by the instance that has the specified parameters, providing default values for the parameters not commonly used.
/// An instance of the class associated with the constructor.
/// 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 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
/// The class is abstract.-or- The constructor is a class initializer.
/// The constructor is private or protected, and the caller lacks .
/// The array does not contain values that match the types accepted by this constructor.
/// The invoked constructor throws an exception.
/// An incorrect number of parameters was passed.
/// Creation of , , and types is not supported.
/// The caller does not have the necessary code access permission.
// Token: 0x06001DD2 RID: 7634 RVA: 0x0006FCC0 File Offset: 0x0006DEC0
[DebuggerHidden]
[DebuggerStepThrough]
public object Invoke(object[] parameters)
{
if (parameters == null)
{
parameters = new object[0];
}
return this.Invoke(BindingFlags.CreateInstance, null, parameters, null);
}
/// When implemented in a derived class, invokes the constructor reflected by this ConstructorInfo with the specified arguments, under the constraints of the specified Binder.
/// An instance of the class associated with the constructor.
/// One of the BindingFlags values that specifies the type of binding.
/// A Binder that defines a set of properties and enables the binding, coercion of argument types, and invocation of members using reflection. If is null, then Binder.DefaultBinding is used.
/// An array of type Object used to match the number, order and type of the parameters for this constructor, under the constraints of . 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 null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
/// A used to govern the coercion of types. If this is null, the for the current thread is used.
/// The array does not contain values that match the types accepted by this constructor, under the constraints of the .
/// The invoked constructor throws an exception.
/// An incorrect number of parameters was passed.
/// Creation of , , and types is not supported.
/// The caller does not have the necessary code access permissions.
/// The class is abstract.-or- The constructor is a class initializer.
/// The constructor is private or protected, and the caller lacks .
// Token: 0x06001DD3 RID: 7635
public abstract object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
/// Gets a object representing the type.
/// A object representing the type.
// Token: 0x06001DD4 RID: 7636 RVA: 0x0006FCE0 File Offset: 0x0006DEE0
virtual Type System.Runtime.InteropServices._ConstructorInfo.GetType()
{
return base.GetType();
}
/// Represents the name of the class constructor method as it is stored in metadata. This name is always ".ctor". This field is read-only.
// Token: 0x04000A1F RID: 2591
[ComVisible(true)]
public static readonly string ConstructorName = ".ctor";
/// Represents the name of the type constructor method as it is stored in metadata. This name is always ".cctor". This property is read-only.
// Token: 0x04000A20 RID: 2592
[ComVisible(true)]
public static readonly string TypeConstructorName = ".cctor";
}
}