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

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

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

    public int TemperatureC { get; set; }

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

    public string? Summary { get; set; }
}