static void Main(string[] args) { double n = -3.45; IFormatProvider fp = new WordyFormatProvider(); Console.WriteLine(string.Format(fp,"{0:C} in words is {0:W}" ,n)); Console.Read(); }
static void Main(string[] args) { double n = -3.45; IFormatProvider fp = new WordyFormatProvider(); Console.WriteLine(string.Format(fp, "{0:C} in words is {0:W}", n)); Console.Read(); }