Created
March 11, 2018 17:29
-
-
Save chausen/ef0f5e5e0a7bad4d1f411f0d03f7e7e5 to your computer and use it in GitHub Desktop.
C# phone number parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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