Partager via


SyntaxFactory.ReturnStatement Method

Definition

Overloads

ReturnStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, ExpressionSyntax, SyntaxToken)

Creates a new ReturnStatementSyntax instance.

ReturnStatement(SyntaxToken, ExpressionSyntax, SyntaxToken)

Creates a new ReturnStatementSyntax instance.

ReturnStatement(ExpressionSyntax)

Creates a new ReturnStatementSyntax instance.

ReturnStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax)

Creates a new ReturnStatementSyntax instance.

ReturnStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, 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
Source:
Syntax.xml.Main.Generated.cs

Creates a new ReturnStatementSyntax instance.

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

Parameters

returnKeyword
SyntaxToken
expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to

ReturnStatement(SyntaxToken, ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.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:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs
Source:
ReturnStatementSyntax.cs

Creates a new ReturnStatementSyntax instance.

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

Parameters

returnKeyword
SyntaxToken
expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to

ReturnStatement(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
Source:
Syntax.xml.Main.Generated.cs

Creates a new ReturnStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax ReturnStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression = default);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax ReturnStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression = default);
static member ReturnStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ReturnStatementSyntax
Public Shared Function ReturnStatement (Optional expression As ExpressionSyntax = Nothing) As ReturnStatementSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to

ReturnStatement(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
Source:
Syntax.xml.Main.Generated.cs

Creates a new ReturnStatementSyntax instance.

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

Parameters

expression
ExpressionSyntax

Returns

Applies to