Share via


CodeGeneratorContext.AddStatement Method

Definition

Overloads

AddStatement(String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.

AddStatement(String, CodeLinePragma)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.

AddStatement(String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.

public void AddStatement (string generatedCode);
member this.AddStatement : string -> unit
Public Sub AddStatement (generatedCode As String)

Parameters

generatedCode
String

The code statement to add the target method.

Applies to

AddStatement(String, CodeLinePragma)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.

public void AddStatement (string body, System.CodeDom.CodeLinePragma pragma);
member this.AddStatement : string * System.CodeDom.CodeLinePragma -> unit
Public Sub AddStatement (body As String, pragma As CodeLinePragma)

Parameters

body
String

The code statement to add the target method.

pragma
CodeLinePragma

The line pragma.

Applies to