how to add exceptions in C# for right phone number format code example Example: format phone number in c# .net Convert.ToInt64(value).ToString("###-###-####");