Skip to main content

CSharpFactory.UnaryMinusExpression Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
UnaryMinusExpression(ExpressionSyntax, SyntaxToken)
UnaryMinusExpression(ExpressionSyntax)

UnaryMinusExpression(ExpressionSyntax, SyntaxToken)

public static Microsoft.CodeAnalysis.CSharp.Syntax.PrefixUnaryExpressionSyntax UnaryMinusExpression(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax operand, Microsoft.CodeAnalysis.SyntaxToken operatorToken)

Parameters

operand ExpressionSyntax

operatorToken SyntaxToken

Returns

PrefixUnaryExpressionSyntax

UnaryMinusExpression(ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.PrefixUnaryExpressionSyntax UnaryMinusExpression(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax operand)

Parameters

operand ExpressionSyntax

Returns

PrefixUnaryExpressionSyntax