예제 #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));
 }