Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| // <Snippet21> | |
| using System; | |
| public class Example | |
| { | |
| public static void Main() | |
| { | |
| long number = 8009999999; | |
| string fmt = "000-000-0000"; | |
| Console.WriteLine(number.ToString(fmt)); | |
| } | |
| } | |
| // The example displays the following output: | |
| // 800-999-9999 | |
| // </Snippet21> |