private void AmountToWordsConverter03() { #region "AmountToWordsConverter 03" AmountToWordsConverter _converter = new AmountToWordsConverter(20.05, "USD"); string _words = _converter.ToString(); #endregion }
/// <summary> /// Returns the english-words representation of the specified numeric value suffixed with the specified currency. /// </summary> /// <param name="amountvalue">Numeric / amount value to convert</param> /// <param name="amountcurrency">Suffixing curreny</param> /// <returns></returns> public static string AmountToWords(double amountvalue, string amountcurrency) { string _words = ""; AmountToWordsConverter _converter = new AmountToWordsConverter(amountvalue, amountcurrency); _words = _converter.ToString(); _converter = null; GC.Collect(); return(_words); }
/// <summary> /// Converts the initialized numeric value into its english-word representation suffixed with the specified currency. /// </summary> /// <param name="amountvalue">Numeric / amount value to convert</param> /// <param name="amountcurrency">Suffixing curreny</param> /// <returns>Returns the english-words representation of the specified numeric value suffixed with the specified currency.</returns> /// <example> /// <code source="..\Development.Materia\Examples\Example.cs" region="AmountToWordsConverter 02" language="cs" /> /// <code source="..\Development.Materia\Development.Materia.VBExamples\Development.Materia.VBExamples\Example.vb" region="AmountToWordsConverter 02" language="vbnet" /> /// </example> public static string AmountToWords(double amountvalue, string amountcurrency) { string _words = ""; AmountToWordsConverter _converter = new AmountToWordsConverter(amountvalue, amountcurrency); _words = _converter.ToString(); _converter=null; GC.Collect(); return _words; }