How to display a number with comma and 2 decimal places in C# ?

Below is a sample sourcecode demonstrating How to display a number with comma and 2 decimal places in C# .

using System;
namespace ConsoleApplication1
{ 
    class Program
    {
        static void Main(string[] args)
        {
            double data = 12890.78654;
            Console.WriteLine("{0:#,##.##}", data);
            Console.ReadLine();
        }
    }
}