Skip to content

Commit 610e5be

Browse files
committed
JsonDateTimeFormatAttribute: mark as JsonAttribute
1 parent 61b6290 commit 610e5be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Scarlet.System.Text.Json.DateTimeConverter/JsonDateTimeFormatAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using System.Text.Json.Serialization;
2+
13
namespace Scarlet.System.Text.Json.DateTimeConverter;
24

35
/// <summary>
@@ -29,7 +31,7 @@ namespace Scarlet.System.Text.Json.DateTimeConverter;
2931
/// </code>
3032
/// </example>
3133
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
32-
public sealed class JsonDateTimeFormatAttribute : Attribute
34+
public sealed class JsonDateTimeFormatAttribute : JsonAttribute
3335
{
3436
/// <summary>
3537
/// Gets the date format string.

0 commit comments

Comments
 (0)