public static WeatherForecastWithRequiredPropertyConverterAttribute CreateWeatherForecastAttrReg() { var weatherForecast = new WeatherForecastWithRequiredPropertyConverterAttribute { Date = DateTime.Parse("2019-08-01"), TemperatureCelsius = 25, Summary = "Hot" }; return weatherForecast; }
public static void DisplayPropertyValues(this WeatherForecastWithRequiredPropertyConverterAttribute wf) { Utilities.DisplayPropertyValues(wf); Console.WriteLine(); }