I want to ask that can I validate data if I use the getters and setters short hand
public int GrossSallery { get;set; }
Actually I don't want users to come and just provide some random input. I know I can use the extended properties like
public int GrossSallery
{
get
{
return this.tax;
}
set
{
if (value <= 0)
{
return;
}
this.tax = value;
}
}