How to create class at runtime from file

c#, parsing

Solution

Yes, it's possible to create a class at runtime from a file.

Dynamic Source Code Generation and Compilation

Problem

Is it possible to create a class at runtime from a file without parsing it? If not what would be the best approach to retrieve class properties, constructors and methods from a file? Taking into account that a file could have more than one class just like a typical cs file.

Original source

Related problems