aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2016-02-04 06:51:54 +0000
committerGravatar Jon Skeet <jonskeet@google.com>2016-02-04 14:50:43 +0000
commit7762f163a4150772be9a0eae3a285ff9b1eb3246 (patch)
treed5221ec9c489e6fc5c49460387273c3723862981 /csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
parentc78222a366edf128e4361d32958dc96d0b4d89d8 (diff)
Rename Preconditions to ProtoPreconditions
(Generated code changes in next commit.)
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs b/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
index 31d5a30f..e94e3e6c 100644
--- a/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
+++ b/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));
}