Microsoft.CSharp.CSharpCodeProvider Class

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

See Also: CSharpCodeProvider Members

Syntax

public class CSharpCodeProvider : System.CodeDom.Compiler.CodeDomProvider

Remarks

This class provides methods that can be used to retrieve instances of the C# System.CodeDom.Compiler.ICodeGenerator and System.CodeDom.Compiler.ICodeCompiler implementations.

Note:

This class contains a link demand and an inheritance demand at the class level that applies to all members. A System.Security.SecurityException is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see Link Demands and Inheritance Demands.

Requirements

Namespace: Microsoft.CSharp
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0