using System;
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System
{
/// Contains methods to create types of objects locally or remotely, or obtain references to existing remote objects. This class cannot be inherited.
// Token: 0x020000AC RID: 172
[Token(Token = "0x20000AC")]
[ComDefaultInterface(typeof(_Activator))]
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
public sealed class Activator
{
/// Creates an instance of the specified type using the constructor that best matches the specified parameters.
/// The type of object to create.
/// A combination of zero or more bit flags that affect the search for the constructor. If is zero, a case-sensitive search for public constructors is conducted.
/// An object that uses and to seek and identify the constructor. If is , the default binder is used.
/// An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If is an empty array or , the constructor that takes no parameters (the default constructor) is invoked.
/// Culture-specific information that governs the coercion of to the formal types declared for the constructor. If is , the for the current thread is used.
/// A reference to the newly created object.
///
/// is .
///
/// is not a .
/// -or-
/// is an open generic type (that is, the property returns ).
///
/// cannot be a .
/// -or-
/// Creation of , , , and types, or arrays of those types, is not supported.
/// -or-
/// The assembly that contains is a dynamic assembly that was created with .
/// -or-
/// The constructor that best matches has arguments.
/// The constructor being called throws an exception.
/// The caller does not have permission to call this constructor.
/// Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
/// The COM type was not obtained through or .
/// No matching constructor was found.
///
/// is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
///
/// is not a valid type.
// Token: 0x060004D9 RID: 1241 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004D9")]
[Address(RVA = "0x26BBE30", Offset = "0x26BAC30", VA = "0x1826BBE30")]
public static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture)
{
return null;
}
/// Creates an instance of the specified type using the constructor that best matches the specified parameters.
/// The type of object to create.
/// A combination of zero or more bit flags that affect the search for the constructor. If is zero, a case-sensitive search for public constructors is conducted.
/// An object that uses and to seek and identify the constructor. If is , the default binder is used.
/// An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If is an empty array or , the constructor that takes no parameters (the default constructor) is invoked.
/// Culture-specific information that governs the coercion of to the formal types declared for the constructor. If is , the for the current thread is used.
/// An array of one or more attributes that can participate in activation. This is typically an array that contains a single object that specifies the URL that is required to activate a remote object.
/// This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
/// A reference to the newly created object.
///
/// is .
///
/// is not a .
/// -or-
/// is an open generic type (that is, the property returns ).
///
/// cannot be a .
/// -or-
/// Creation of , , , and types, or arrays of those types, is not supported.
/// -or-
/// is not an empty array, and the type being created does not derive from .
/// -or-
/// The assembly that contains is a dynamic assembly that was created with .
/// -or-
/// The constructor that best matches has arguments.
/// The constructor being called throws an exception.
/// The caller does not have permission to call this constructor.
/// Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
/// The COM type was not obtained through or .
/// No matching constructor was found.
///
/// is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
///
/// is not a valid type.
// Token: 0x060004DA RID: 1242 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004DA")]
[Address(RVA = "0x26BBAA0", Offset = "0x26BA8A0", VA = "0x1826BBAA0")]
public static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes)
{
return null;
}
/// Creates an instance of the specified type using the constructor that best matches the specified parameters.
/// The type of object to create.
/// An array of arguments that match in number, order, and type the parameters of the constructor to invoke. If is an empty array or , the constructor that takes no parameters (the default constructor) is invoked.
/// A reference to the newly created object.
///
/// is .
///
/// is not a .
/// -or-
/// is an open generic type (that is, the property returns ).
///
/// cannot be a .
/// -or-
/// Creation of , , , and types, or arrays of those types, is not supported.
/// -or-
/// The assembly that contains is a dynamic assembly that was created with .
/// -or-
/// The constructor that best matches has arguments.
/// The constructor being called throws an exception.
/// In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, , instead.
///
///
///
///
/// The caller does not have permission to call this constructor.
/// Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
/// The COM type was not obtained through or .
/// In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, , instead.
///
///
///
///
/// No matching public constructor was found.
///
/// is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
///
/// is not a valid type.
// Token: 0x060004DB RID: 1243 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004DB")]
[Address(RVA = "0x26BBE70", Offset = "0x26BAC70", VA = "0x1826BBE70")]
public static object CreateInstance(Type type, params object[] args)
{
return null;
}
/// Creates an instance of the specified type using that type's default constructor.
/// The type of object to create.
/// A reference to the newly created object.
///
/// is .
///
/// is not a .
/// -or-
/// is an open generic type (that is, the property returns ).
///
/// cannot be a .
/// -or-
/// Creation of , , , and types, or arrays of those types, is not supported.
/// -or-
/// The assembly that contains is a dynamic assembly that was created with .
/// The constructor being called throws an exception.
/// In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, , instead.
///
///
///
///
/// The caller does not have permission to call this constructor.
/// Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
/// The COM type was not obtained through or .
/// In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, , instead.
///
///
///
///
/// No matching public constructor was found.
///
/// is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
///
/// is not a valid type.
// Token: 0x060004DC RID: 1244 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004DC")]
[Address(RVA = "0x26BBE60", Offset = "0x26BAC60", VA = "0x1826BBE60")]
public static object CreateInstance(Type type)
{
return null;
}
/// Creates an instance of the specified type using that type's default constructor.
/// The type of object to create.
///
/// if a public or nonpublic default constructor can match; if only a public default constructor can match.
/// A reference to the newly created object.
///
/// is .
///
/// is not a .
/// -or-
/// is an open generic type (that is, the property returns ).
///
/// cannot be a .
/// -or-
/// Creation of , , , and types, or arrays of those types, is not supported.
/// -or-
/// The assembly that contains is a dynamic assembly that was created with .
/// The constructor being called throws an exception.
/// The caller does not have permission to call this constructor.
/// Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
/// The COM type was not obtained through or .
/// No matching public constructor was found.
///
/// is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
///
/// is not a valid type.
// Token: 0x060004DD RID: 1245 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004DD")]
[Address(RVA = "0x26BBCB0", Offset = "0x26BAAB0", VA = "0x1826BBCB0")]
public static object CreateInstance(Type type, bool nonPublic)
{
return null;
}
/// Creates an instance of the type designated by the specified generic type parameter, using the parameterless constructor.
/// The type to create.
/// A reference to the newly created object.
/// In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, , instead.
///
///
///
///
/// The type that is specified for does not have a parameterless constructor.
// Token: 0x060004DE RID: 1246 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60004DE")]
[Address(RVA = "0x15F56F0", Offset = "0x15F44F0", VA = "0x1815F56F0")]
public static T CreateInstance()
{
return null;
}
}
}