C# Class PdfRpt.Core.Helper.PersianNumber

English numbers to Persian numbers converter and vice versa.
Show file Open project: VahidN/PdfReport

Public Methods

Method Description
ToEnglishNumbers ( this data ) : string

Converts Persian digits of a given string to their equivalent English digits.

ToPersianNumbers ( this number ) : string

Converts English digits of a given string to their equivalent Persian digits.

Method Details

ToEnglishNumbers() public static method

Converts Persian digits of a given string to their equivalent English digits.
public static ToEnglishNumbers ( this data ) : string
data this Persian number
return string

ToPersianNumbers() public static method

Converts English digits of a given string to their equivalent Persian digits.
public static ToPersianNumbers ( this number ) : string
number this English number
return string