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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET