Index: third_party/protobuf/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs |
index 31d5a30f5bb833de6291da9adc79a7f02f5fc817..e94e3e6c60bcea9620e4111f930d8d16e36f0a06 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs |
@@ -91,7 +91,7 @@ namespace Google.Protobuf.Reflection |
/// <returns>A type registry for the given files.</returns> |
public static TypeRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors) |
{ |
- Preconditions.CheckNotNull(fileDescriptors, nameof(fileDescriptors)); |
+ ProtoPreconditions.CheckNotNull(fileDescriptors, nameof(fileDescriptors)); |
var builder = new Builder(); |
foreach (var file in fileDescriptors) |
{ |
@@ -128,7 +128,7 @@ namespace Google.Protobuf.Reflection |
/// <returns>A type registry for the given files.</returns> |
public static TypeRegistry FromMessages(IEnumerable<MessageDescriptor> messageDescriptors) |
{ |
- Preconditions.CheckNotNull(messageDescriptors, nameof(messageDescriptors)); |
+ ProtoPreconditions.CheckNotNull(messageDescriptors, nameof(messageDescriptors)); |
return FromFiles(messageDescriptors.Select(md => md.File)); |
} |