Home   Cover Cover Cover Cover
 

Dynamic object creation

Chap4_Ex19.cs
using System;
using System.Reflection;

public class DynObjCreation {
  
  public static void Main(string[] args) {
    Assembly a = Assembly.LoadFrom("TestReflection.dll");
    object trObj = a.CreateInstance("TestReflection");

  }
}