Skip to content

Instantly share code, notes, and snippets.

@chausen
Created March 11, 2018 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chausen/ef0f5e5e0a7bad4d1f411f0d03f7e7e5 to your computer and use it in GitHub Desktop.
Save chausen/ef0f5e5e0a7bad4d1f411f0d03f7e7e5 to your computer and use it in GitHub Desktop.
C# phone number parsing
public class Kata
{
public static string CreatePhoneNumber(int[] numbers)
{
return long.Parse(string.Concat(numbers)).ToString("(000) 000-0000");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment