Index: third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs b/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs |
index 56e32ad86e5cb09379be51be77333c703928da5e..e8a6073e2bcb6b6f47dafb1f67f31de9b4a8671a 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs |
@@ -32,7 +32,6 @@ |
using System; |
using System.IO; |
-using System.Reflection; |
namespace Google.Protobuf.ProtoDump |
{ |
@@ -56,7 +55,7 @@ namespace Google.Protobuf.ProtoDump |
Console.Error.WriteLine("Unable to load type {0}.", args[0]); |
return 1; |
} |
- if (!typeof(IMessage).GetTypeInfo().IsAssignableFrom(type)) |
+ if (!typeof(IMessage).IsAssignableFrom(type)) |
{ |
Console.Error.WriteLine("Type {0} doesn't implement IMessage.", args[0]); |
return 1; |