Web-Development-with-Blazor.../Chapter08/MyBlog/BlazorWebAssembly/Shared/WeatherForecast.cs
2023-02-17 15:28:17 +01:00

13 lines
290 B
C#

namespace BlazorWebAssembly.Shared
{
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public string? Summary { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
}