共用方式為


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# 程式碼產生器的執行個體。

public:
 override System::CodeDom::Compiler::ICodeGenerator ^ CreateGenerator();
[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 ();
[<System.Obsolete("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")>]
override this.CreateGenerator : unit -> System.CodeDom.Compiler.ICodeGenerator
[<System.Obsolete("ICodeGenerator has been deprecated. Use the methods directly on the CodeDomProvider class instead.")>]
override this.CreateGenerator : unit -> System.CodeDom.Compiler.ICodeGenerator
override this.CreateGenerator : unit -> System.CodeDom.Compiler.ICodeGenerator
Public Overrides Function CreateGenerator () As ICodeGenerator

傳回

C# ICodeGenerator 實作的執行個體。

屬性

適用於

另請參閱