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.

適用於