Compiling

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Hi y'all,

Isn't there a way to compile C# from within a C# program? I thought I saw
something regarding this once but cannot find the reference.

The idea is to provide the ability to add rules for processing to an
existing system by writing the rules in C# and having the application
incorporate them.

Thanx,
Bill
 
Bill,

Check out the Microsoft.CSharp.CSharpCodeProvider class, you can get a
System.CodeDom.Compiler.ICodeCompiler from its CreateCompiler() method.

I hope this helps!
 
Back
Top