This documentation is archived and is not being maintained.

Compiler Class

Managed wrapper for the C# compiler.

For a list of all members of this type, see Compiler Members.


[Visual Basic]
Public Class Compiler
public class Compiler
public __gc class Compiler
public class Compiler

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


To compile C# code in-process, call Compile.


Namespace: Microsoft.CSharp

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Cscompmgd (in Cscompmgd.dll)

See Also

Compiler Members | Microsoft.CSharp Namespace