示例#1
0
        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();
        }
示例#2
0
        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();
        }