0 out of 1 rated this helpful - Rate this topic

Assembly.CreateInstance Method

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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.