Files
velopack/samples/UnoSample/UnoSample/Models/WeatherForecast.cs
Kevin Bost 4484734be7 WIP getting an Uno sample working
Getting Uno WinUI entry point working

Starting README with Uno app description

Updating Uno sample with a README
2024-06-11 08:39:04 +01:00

16 lines
572 B
C#

namespace UnoSample.DataContracts;
/// <summary>
/// A Weather Forecast for a specific date
/// </summary>
/// <param name="Date">Gets the Date of the Forecast.</param>
/// <param name="TemperatureC">Gets the Forecast Temperature in Celsius.</param>
/// <param name="Summary">Get a description of how the weather will feel.</param>
public record WeatherForecast(DateOnly Date, double TemperatureC, string? Summary)
{
/// <summary>
/// Gets the Forecast Temperature in Fahrenheit
/// </summary>
public double TemperatureF => 32 + (TemperatureC * 9 / 5);
}