Created
April 9, 2021 21:20
-
-
Save enisn/9a0f397c251a4b49bb2283e8cd362148 to your computer and use it in GitHub Desktop.
AutoFilterer.Generators | Step 1 | WeatherForecast.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MyAwesomeApp | |
{ | |
[GenerateAutoFilter] // <-- Add this attribute | |
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; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment