Skip to content

Commit d808c32

Browse files
Kristoffer Lerbæk PedersenHavret
authored andcommitted
Use using directive for ByteString's namespace.
1 parent c25cdce commit d808c32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Protobuf.System.Text.Json/FieldTypeResolver.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Google.Protobuf;
12
using Google.Protobuf.Reflection;
23
using Google.Protobuf.WellKnownTypes;
34
using Type = System.Type;
@@ -33,7 +34,7 @@ public static Type ResolverFieldType(FieldDescriptor fieldDescriptor, Dictionary
3334
case FieldType.String:
3435
return typeof(string);
3536
case FieldType.Bytes:
36-
return typeof(Google.Protobuf.ByteString);
37+
return typeof(ByteString);
3738
case FieldType.Message when fieldDescriptor.MessageType.ClrType is { } clrType:
3839
if (clrType == typeof(DoubleValue))
3940
return typeof(double?);

0 commit comments

Comments
 (0)