This documentation is archived and is not being maintained.

CSharpCodeProvider Class

Provides access to instances of the C# code generator and code compiler.

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


[Visual Basic]
Public Class CSharpCodeProvider
   Inherits CodeDomProvider
public class CSharpCodeProvider : CodeDomProvider
public __gc class CSharpCodeProvider : public CodeDomProvider
public class CSharpCodeProvider extends CodeDomProvider

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.


This interface provides methods that can be used to retrieve instances of the C# ICodeGenerator and ICodeCompiler implementations.


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: System (in System.dll)

See Also

CSharpCodeProvider Members | Microsoft.CSharp Namespace | ICodeGenerator | ICodeCompiler | System.CodeDom | System.CodeDom.Compiler