ToUIString

using System.Globalization;

namespace Extensions
{
    public static class DecimalExtensions
    {
         public static string ToUIString(this decimal value)
         {
             return value.ToString(CultureInfo.CurrentUICulture);
         }
    }
}
Example:
var amount = 10.25m;
Amount.Text = amount.ToUIString();

Description

Converts a decimal to a string using the current UI culture

Details

Double click on the code to select all.

 

;