Compartir a través de


SyntaxFactory.GetStandaloneExpression(ExpressionSyntax) Method

Definition

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