I know we can define properties like this:
public int TemperatureC { get; set; }
But i've seen this:
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
this just works, is this the same as:
public int TemperatureF { get { return 32 + (int)(TemperatureC / 0.5556)}};
?
I suppose there is not set
in this case.