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: 0x020000B3 RID: 179 [Token(Token = "0x20000B3")] [ClassInterface(ClassInterfaceType.None)] [ComVisible(true)] [ComDefaultInterface(typeof(_Activator))] 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: 0x060004F4 RID: 1268 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F4")] [Address(RVA = "0x2CFFB20", Offset = "0x2CFEB20", VA = "0x182CFFB20")] 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: 0x060004F5 RID: 1269 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F5")] [Address(RVA = "0x2CFF790", Offset = "0x2CFE790", VA = "0x182CFF790")] 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: 0x060004F6 RID: 1270 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F6")] [Address(RVA = "0x2CFFB60", Offset = "0x2CFEB60", VA = "0x182CFFB60")] 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: 0x060004F7 RID: 1271 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F7")] [Address(RVA = "0x2CFFB50", Offset = "0x2CFEB50", VA = "0x182CFFB50")] 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: 0x060004F8 RID: 1272 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F8")] [Address(RVA = "0x2CFF9A0", Offset = "0x2CFE9A0", VA = "0x182CFF9A0")] 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: 0x060004F9 RID: 1273 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60004F9")] [Address(RVA = "0x22A7800", Offset = "0x22A6800", VA = "0x1822A7800")] public static T CreateInstance() { return null; } } }