How to format a string as a telephone number in C#
I have a string “1112224444′ it is a telephone number. I want to format as 111-222-4444 before I store it in a file. It is on a datarecord and I would prefer to be able to do this without assigning a new variable. I was thinking: but that does not seem to do the trick. … Read more