mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
* Rename avalonia & wpf samples * Rename rest of samples * fix sample readme * Fix compat util tests * rename / move all src projects * remove package lock files and move libC# again * Add rust lib and cargo workspace * Replace locksmith lib with new filelocksmith-rs library * Deprecated type * fix setup compile * Use thiserror for error handling * Rename some enums and formatting * Add missing SHA256 * wip c++ library * cpp wip * alphabetize readme * Try to get build working again * Fix some conditionally compiled bits * cross config should be in workspace root * Fix PathHelper for new rust target dir * Missed one old path to velopack.csproj * remove obsolete coverage code * testawareapp.exe no longer exists
16 lines
572 B
C#
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);
|
|
}
|