Mono Class Library: System.Activator Overview | Members

System.Activator.CreateInstanceFrom Method

Create a Type and instantiate it.

public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom (string assemblyFile, string typeName)

Parameters

assemblyFile
The path name of the assembly to load from disk.
typeName
The name of the Type to load from the assembly.

Returns

Documentation for this section has not yet been entered.

Remarks

This is equivalent to doing Activator.CreateInstance(Assembly.LoadFrom(assemblyFile).GetType(typeName))

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0