📜  c# 将十进制格式设置为货币 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:15.244000             🧑  作者: Mango

代码示例2
private decimal? _amount;
// For nullable decimals
public string FormattedAmount
{
    get
    {
         return _amount == null ? "null" : string.Format("{0:C}", _amount.Value);
    }
}