Posts by Henrique Macedo • 1 point
1 post
-
0
votes1
answer251
viewsQ: Create a get/set for the Cpf string, which verifies that it has 11 digits, being numbers?
private static string cpf; public bool CPF = cpf.Length == 11 && cpf.All(char.IsDigit); public string Cpf { get { return cpf; } set { if(CPF) cpf = value; } } When I try to create property…
c#asked Henrique Macedo 1