Decimal.UnaryPlus(Decimal) 運算子

定義

傳回 Decimal 運算元的值 (運算元的正負號不變)。

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

運算元 d 的值。

備註

UnaryPlus方法會定義值之一元正運算子的運算 Decimal

適用於