Posts by David Araujo • 41 points
1 post
-
4
votes4
answers25170
viewsA: Format a CPF string?
public string teste(string cpf) { return Convert.ToUInt64(cpf).ToString(@"000\.000\.000\-00"); } This solution does not work for those who have the CPF started with 2 zeros. To solve this problem,…