yes. It can get complex though. the .NET framework provides on the fly compiling classes. Best option I can give is look through the source of SharpDevelop www.icsharpcode.net and look for how they compile.(Although it is written in C#)