Decimal.UnaryPlus(Decimal) Decimal.UnaryPlus(Decimal) Decimal.UnaryPlus(Decimal) Decimal.UnaryPlus(Decimal) Operator

定義

傳回 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 Decimal Decimal Decimal

要傳回的運算元。The operand to return.

傳回

運算元 d 的值。The value of the operand, d.

備註

方法會針對Decimal值定義一元正運算子的運算。 UnaryPlusThe UnaryPlus method defines the operation of the unary positive operator for Decimal values.

適用於