SyntaxFactory.ReturnStatement 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
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
- attributeLists
- SyntaxList<AttributeListSyntax>
- 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
- attributeLists
- SyntaxList<AttributeListSyntax>
- expression
- ExpressionSyntax
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.