Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh committed Jun 3, 2021
1 parent a66eac6 commit ed1412b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,5 @@ public override void Write(Utf8JsonWriter writer, byte[] value, JsonSerializerOp
writer.WriteNumber(ByteArrayRefKey, id);
writer.WriteEndObject();
}

private struct ByteArrayRef
{
[JsonPropertyName("__byte[]")]
public int? Id { get; set; }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Microsoft.JSInterop.Infrastructure
{
internal struct ByteArrayRef
{
[JsonPropertyName("__byte[]")]
public int? Id { get; set; }
}
}

0 comments on commit ed1412b

Please sign in to comment.