示例#1
0
 public static WeatherForecastDerived CreateWeatherForecastDerived()
 {
     var weatherForecast = new WeatherForecastDerived
     {
         Date = DateTime.Parse("2019-08-01"),
         TemperatureCelsius = 25,
         Summary = "Hot",
         WindSpeed = 35
     };
     return weatherForecast;
 }
示例#2
0
 public static void DisplayPropertyValues(this WeatherForecastDerived wf)
 {
     Utilities.DisplayPropertyValues(wf);
     Console.WriteLine();
 }