I have a string when a telephone number is inputted - there is a mask so it always looks like \"(123) 456-7890\" - I\'d like to take the formatting out before saving it to the D
Try this:
string s = "(123) 456-7890"; UInt64 i = UInt64.Parse( s.Replace("(","") .Replace(")","") .Replace(" ","") .Replace("-",""));
You should be safe with this since the input is masked.