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