Decimal.UnaryPlus(Decimal) 操作员

定义

返回 Decimal 操作数的值(操作数符号不变)。Returns the value of the Decimal operand (the sign of the operand is unchanged).

public:
 static System::Decimal operator +(System::Decimal d);
public static decimal operator + (decimal d);
static member ( ~+ ) : decimal -> decimal
Public Shared Operator + (d As Decimal) As Decimal

参数

d
Decimal

要返回的操作数。The operand to return.

返回

操作数 d 的值。The value of the operand, d.

注解

UnaryPlus 方法定义 Decimal 值的一元正运算符的运算。The UnaryPlus method defines the operation of the unary positive operator for Decimal values.

适用于