SyntaxGenerator.ConditionalExpression 方法

定义

创建表示条件计算操作的表达式。

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ ConditionalExpression(Microsoft::CodeAnalysis::SyntaxNode ^ condition, Microsoft::CodeAnalysis::SyntaxNode ^ whenTrue, Microsoft::CodeAnalysis::SyntaxNode ^ whenFalse);
public abstract Microsoft.CodeAnalysis.SyntaxNode ConditionalExpression (Microsoft.CodeAnalysis.SyntaxNode condition, Microsoft.CodeAnalysis.SyntaxNode whenTrue, Microsoft.CodeAnalysis.SyntaxNode whenFalse);
abstract member ConditionalExpression : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ConditionalExpression (condition As SyntaxNode, whenTrue As SyntaxNode, whenFalse As SyntaxNode) As SyntaxNode

参数

condition
SyntaxNode
whenTrue
SyntaxNode
whenFalse
SyntaxNode

返回

适用于