Assembly.CreateInstance Method
.NET Framework 3.0
Locates a type from this assembly and creates an instance of it using the system activator.
| Name | Description |
|---|---|
| Assembly.CreateInstance (String) | Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search. Supported by the .NET Compact Framework. |
| Assembly.CreateInstance (String, Boolean) | Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search. |
| Assembly.CreateInstance (String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[]) | Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes. |
Does not create the Type ...
The documentation above says, "
Locates the specified type from this assembly and creates an instance of it ....". Strictly speaking it does not create an instance of the Type, it creates an instance of an object whose Type is the named type. Assembly.GetType can be used to create an instance of the Type, as you would expect.
- 7/17/2007
- GarrSL