How do I create a dynamic COM/OLE/ActiveX object in C# 4.0 from a program identifier or ProgID (such as \"Word.Application\") without referencing a library?
In C# 3.5 I\
What's wrong with
dynamic myTypeInstance = Activator.CreateInstance(Type.GetTypeFromProgID(typeName, true));
?
If it's a known type name, there's also
dynamic myTypeInstance = Activator.CreateInstance("typeName", "assemblyName");