예제 #1
0
 public static string ToLocalizedString(this IConvertible @this, bool forceDecimals, CultureInfo culture = null)
 {
     if (forceDecimals)
     {
         return(@this.ToDouble().ToLocalizedString(culture));
     }
     else
     {
         return(@this.ToLocalizedString(culture));
     }
 }