Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Reflection;
using System.Reflection.Emit;
class Program
{
static void Main()
{
var myType = CreateDynamicType();
var myObject = Activator.CreateInstance(myType);