Welcome to mirror list, hosted at ThFree Co, Russian Federation.

WeatherForecast.cs « WebApi-CSharp « content « Web.ProjectTemplates « ProjectTemplates « src - github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f185c909affa45e254663ae553b568d0a688a83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
namespace Company.WebApplication1;

public class WeatherForecast
{
    public DateOnly Date { get; set; }

    public int TemperatureC { get; set; }

    public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

    public string? Summary { get; set; }
}