SyntaxFactory.GetStandaloneExpression(ExpressionSyntax) 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.
Gets the containing expression that is actually a language expression and not just typed as an ExpressionSyntax for convenience. For example, NameSyntax nodes on the right side of qualified names and member access expressions are not language expressions, yet the containing qualified names or member access expressions are indeed expressions.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ GetStandaloneExpression(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax GetStandaloneExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
static member GetStandaloneExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax
Public Shared Function GetStandaloneExpression (expression As ExpressionSyntax) As ExpressionSyntax
Parameters
- expression
- ExpressionSyntax
Returns
Applies to
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.