Skip to content

Commit ed1412b

Browse files
committed
Refactor
1 parent a66eac6 commit ed1412b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/JSInterop/Microsoft.JSInterop/src/Infrastructure/ByteArrayJsonConverter.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,5 @@ public override void Write(Utf8JsonWriter writer, byte[] value, JsonSerializerOp
5555
writer.WriteNumber(ByteArrayRefKey, id);
5656
writer.WriteEndObject();
5757
}
58-
59-
private struct ByteArrayRef
60-
{
61-
[JsonPropertyName("__byte[]")]
62-
public int? Id { get; set; }
63-
}
6458
}
6559
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using System;
5+
using System.Text.Json;
6+
using System.Text.Json.Serialization;
7+
8+
namespace Microsoft.JSInterop.Infrastructure
9+
{
10+
internal struct ByteArrayRef
11+
{
12+
[JsonPropertyName("__byte[]")]
13+
public int? Id { get; set; }
14+
}
15+
}

0 commit comments

Comments
 (0)