chore 优化代码
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
namespace KonSoft.InternalGateway
|
||||
namespace KonSoft.InternalGateway;
|
||||
|
||||
public class WeatherForecast
|
||||
{
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateOnly Date { get; set; }
|
||||
public DateOnly Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
|
||||
public string? Summary { get; set; }
|
||||
}
|
||||
}
|
||||
public string? Summary { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user