Skip to content

Commit 8678313

Browse files
committed
Add source generator test file
1 parent 52dfbd4 commit 8678313

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Text.Json.Serialization;
3+
4+
namespace SourceGeneration;
5+
6+
public class WeatherForecast
7+
{
8+
public DateTime Date { get; set; }
9+
public int TemperatureCelsius { get; set; }
10+
public string Summary { get; set; }
11+
}
12+
13+
[JsonSourceGenerationOptions(WriteIndented = true)]
14+
[JsonSerializable(typeof(WeatherForecast))]
15+
internal partial class SourceGenerationContext : JsonSerializerContext
16+
{
17+
}

0 commit comments

Comments
 (0)