Horje
c# format decimal as currency Code Example
c# format decimal as currency
private decimal _amount;

public string FormattedAmount
{
    get { return string.Format("{0:C}", _amount); }
}
c# format decimal as currency
private decimal? _amount;
// For nullable decimals
public string FormattedAmount
{
    get
    {
         return _amount == null ? "null" : string.Format("{0:C}", _amount.Value);
    }
}  




Csharp

Related
how to make a singleton in unity Code Example how to make a singleton in unity Code Example
how to convert a Bitmap to a base64 string c# xamarin universal Code Example how to convert a Bitmap to a base64 string c# xamarin universal Code Example
c# get today's date Code Example c# get today's date Code Example
c# round to 2 decimal places Code Example c# round to 2 decimal places Code Example
C# create DataTable Code Example C# create DataTable Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8