Mono Class Library: System.Activator Overview | Members

System.Activator.CreateInstanceFrom Method

Create a Type and instantiate it. [Edit]

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

Parameters

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

Returns

Documentation for this section has not yet been entered. [Edit]

Remarks

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

Requirements

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