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