SyntaxFactory.ExpressionStatement Method

Definition

Overloads

ExpressionStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax)

Creates a new ExpressionStatementSyntax instance.

ExpressionStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, SyntaxToken)

Creates a new ExpressionStatementSyntax instance.

ExpressionStatement(ExpressionSyntax)

Creates a new ExpressionStatementSyntax instance.

ExpressionStatement(ExpressionSyntax, SyntaxToken)

Creates a new ExpressionStatementSyntax instance.

ExpressionStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new ExpressionStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax ExpressionStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
static member ExpressionStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Public Shared Function ExpressionStatement (attributeLists As SyntaxList(Of AttributeListSyntax), expression As ExpressionSyntax) As ExpressionStatementSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to

ExpressionStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new ExpressionStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax ExpressionStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member ExpressionStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Public Shared Function ExpressionStatement (attributeLists As SyntaxList(Of AttributeListSyntax), expression As ExpressionSyntax, semicolonToken As SyntaxToken) As ExpressionStatementSyntax

Parameters

expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to

ExpressionStatement(ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new ExpressionStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionStatementSyntax ^ ExpressionStatement(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax ExpressionStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
static member ExpressionStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Public Shared Function ExpressionStatement (expression As ExpressionSyntax) As ExpressionStatementSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to

ExpressionStatement(ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs
Source:
ExpressionStatementSyntax.cs

Creates a new ExpressionStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionStatementSyntax ^ ExpressionStatement(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax ExpressionStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member ExpressionStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionStatementSyntax
Public Shared Function ExpressionStatement (expression As ExpressionSyntax, semicolonToken As SyntaxToken) As ExpressionStatementSyntax

Parameters

expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to