SyntaxGenerator.ConditionalAccessExpression(SyntaxNode, SyntaxNode) 方法

定义

创建表示条件访问操作的表达式。 使用 MemberBindingExpression(SyntaxNode)ElementBindingExpression(IEnumerable<SyntaxNode>) 生成 whenNotNull 参数。

public abstract Microsoft.CodeAnalysis.SyntaxNode ConditionalAccessExpression (Microsoft.CodeAnalysis.SyntaxNode expression, Microsoft.CodeAnalysis.SyntaxNode whenNotNull);
abstract member ConditionalAccessExpression : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ConditionalAccessExpression (expression As SyntaxNode, whenNotNull As SyntaxNode) As SyntaxNode

参数

expression
SyntaxNode
whenNotNull
SyntaxNode

返回

适用于