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 the property with the {get; set; } so this error occurs:
"An unhandled exception of type 'System.NullReferenceException' occurred in Parking.exe Additional information: Object reference not set to an instance of an object. "