예제 #1
0
파일: Program.cs 프로젝트: ErhanGDC/MyWorks
        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
파일: Program.cs 프로젝트: ErhanGDC/MyWorks
        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();
        }