2 instantiations of WeatherForecast
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataObjectTests.cs (2)
2898WeatherForecast forecast = new() 2929WeatherForecast result = new();
12 references to WeatherForecast
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataObjectTests.cs (12)
2898WeatherForecast forecast = new() 2908dataObject.TryGetData("custom", out WeatherForecast deserialized).Should().BeTrue(); 2925private class WeatherForecastJsonConverter : JsonConverter<WeatherForecast> 2927public override WeatherForecast Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 2929WeatherForecast result = new(); 2956case nameof(WeatherForecast.Date): 2959case nameof(WeatherForecast.TemperatureCelsius): 2962case nameof(WeatherForecast.Summary): 2979public override void Write(Utf8JsonWriter writer, WeatherForecast value, JsonSerializerOptions options) 2982writer.WriteString(nameof(WeatherForecast.Date), value.Date.ToString("MM/dd/yyyy")); 2983writer.WriteNumber(nameof(WeatherForecast.TemperatureCelsius), value.TemperatureCelsius); 2984writer.WriteString(nameof(WeatherForecast.Summary), $"{value.Summary} custom!");