SyntaxGenerator.ConditionalAccessExpression(SyntaxNode, SyntaxNode) Method

Definition

Creates an expression that denotes a conditional access operation. Use MemberBindingExpression(SyntaxNode) and ElementBindingExpression(IEnumerable<SyntaxNode>) to generate the whenNotNull argument.

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

Parameters

expression
SyntaxNode
whenNotNull
SyntaxNode

Returns

Applies to