CSharpCodeProvider.CreateGenerator Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Gets an instance of the C# code generator.

Namespace:   Microsoft.CSharp
Assembly:  System (in System.dll)

[ObsoleteAttribute("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")]
public override ICodeGenerator CreateGenerator()

Return Value

Type: System.CodeDom.Compiler.ICodeGenerator

An instance of the C# ICodeGenerator implementation.

.NET Framework
Available since 1.1
Return to top