CodeGeneratorContext.AddStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for