Пример #1
0
 public static string EnglishToBase64(string input)
 {
     if (!input.IsNumber())
     {
         throw new FormatException(Messages.InvalidNumberFormatException);
     }
     return(ConvertService.EnglishToBase64(input));
 }
Пример #2
0
 public static Decimal PersianToEnglishDecimal(string input)
 {
     if (!input.IsNumber())
     {
         throw new FormatException(Messages.InvalidNumberFormatException);
     }
     input = input.NormalizeNumber();
     return(ConvertService.PersianToEnglishDecimal(input));
 }
Пример #3
0
 public static long PersianToEnglishInt64(string input)
 {
     if (!input.IsNumber())
     {
         throw new FormatException(Messages.InvalidNumberFormatException);
     }
     input = input.NormalizeNumber();
     if (!input.IsInteger())
     {
         throw new FormatException(Messages.InvalidNumberFormatException);
     }
     return(ConvertService.PersianToEnglishInt64(input));
 }
Пример #4
0
 public static string EnglishToPersian(string input)
 {
     return(ConvertService.EnglishToPersian(input));
 }
Пример #5
0
 public static string PersianToEnglish(string input)
 {
     return(ConvertService.PersianToEnglish(input));
 }
Пример #6
0
 public static string Base64ToEnglish(string base64)
 {
     return(ConvertService.Base64ToEnglish(base64));
 }
Пример #7
0
 public static string Base64ToPersian(string base64)
 {
     return(ConvertService.Base64ToPersian(base64));
 }