Version:
CreateDynamicInstance(string typeName, string assemblyName) Method
Returns a new instance of a persistable type as a dynamic object.
Syntax
public
static
object CreateDynamicInstance(string typeName, string assemblyName)
Parameters
- typeName
- Type: string
The type of the persisted object.
- assemblyName
- Type: string
The assembly containing the type of the persisted object.
Returns
New instance of the specified type.
Exceptions
System.ArgumentNullException
|
typeName is null (Nothing in Visual Basic) or empty or assemblyName is null (Nothing in Visual Basic) or empty.
|
System.ArgumentException
|
typeName contains white space.
|