CSharpCodeProvider.CreateGenerator 方法

定義

警告

Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.

警告

ICodeGenerator has been deprecated. Use the methods directly on the CodeDomProvider class instead.

取得 C# 程式碼產生器的執行個體。

[System.Obsolete("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")]
public override System.CodeDom.Compiler.ICodeGenerator CreateGenerator ();
[System.Obsolete("ICodeGenerator has been deprecated. Use the methods directly on the CodeDomProvider class instead.")]
public override System.CodeDom.Compiler.ICodeGenerator CreateGenerator ();
public override System.CodeDom.Compiler.ICodeGenerator CreateGenerator ();

傳回

C# ICodeGenerator 實作的執行個體。

屬性

適用於

產品 版本 (已淘汰)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9)

另請參閱