0
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 with operators { get; set; } this way occurs this error:
"An unhandled Exception of type 'System.Nullreferenceexception' occurred in Estacionamento.exe Additional information: Object Reference not set to an instance of an Object."