format phone number in c# .net

C#
Convert.ToInt64(value).ToString("###-###-####");
Source

Also in C#: