Skip to content

Commit

Permalink
Fix reference source for JsonNumberEnumConverter<T> (#99952)
Browse files Browse the repository at this point in the history
Fix #99878.
  • Loading branch information
eiriktsarpalis committed Mar 19, 2024
1 parent 34dc259 commit b9dfd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/System.Text.Json/ref/System.Text.Json.cs
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ public enum JsonKnownNamingPolicy
KebabCaseLower = 4,
KebabCaseUpper = 5,
}
public sealed partial class JsonNumberEnumConverter<TEnum> : System.Text.Json.Serialization.JsonConverterFactory where TEnum : struct
public sealed partial class JsonNumberEnumConverter<TEnum> : System.Text.Json.Serialization.JsonConverterFactory where TEnum : struct, System.Enum
{
public JsonNumberEnumConverter() { }
public override bool CanConvert(System.Type typeToConvert) { throw null; }
Expand Down

0 comments on commit b9dfd37

Please sign in to comment.