Index: third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs |
index 0e2bad59e5fcf89ecb3ba3894a75fba45130938a..c616470e81fc6e8821283c68f87e2b5855659823 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs |
@@ -32,7 +32,6 @@ |
using System.Collections.Generic; |
using System.IO; |
-using System.Reflection; |
using Google.Protobuf.TestProtos; |
using NUnit.Framework; |
@@ -163,7 +162,7 @@ namespace Google.Protobuf |
codedOutput.Flush(); |
Assert.AreEqual(0, stream.Position); |
Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue)); |
- if (typeof(T).GetTypeInfo().IsValueType) |
+ if (typeof(T).IsValueType) |
{ |
Assert.AreEqual(default(T), codec.DefaultValue); |
} |