I have read a few bits and bobs online about this topic but found none that work for me. What I am trying to do is create a class of a runtime Type.
I use Acti
I'm using this method to get around an issue I ran into, and it seems to be working exactly as I hoped. :)
object instance = Activator.CreateInstance(
typeof(OpCode),
BindingFlags.NonPublic | BindingFlags.Instance,
default(Binder),
new object[] { stringname, pop, push, operand, type, size, s1, s2, ctrl, endsjmpblk, stack },
default(CultureInfo));