aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2016-02-04 16:11:00 +0000
committerJon Skeet <skeet@pobox.com>2016-02-04 16:11:00 +0000
commitbd8a476510d17d3841ff2509fbd67b7f4b543c1c (patch)
treec0d11ef61c62056adb1f3a04a5cbd2dba8ee97c8 /csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs
parentc78222a366edf128e4361d32958dc96d0b4d89d8 (diff)
parent045b528d4acddaf44a941c1a5e137d5a081884fb (diff)
downloadprotobuf-bd8a476510d17d3841ff2509fbd67b7f4b543c1c.tar.gz
protobuf-bd8a476510d17d3841ff2509fbd67b7f4b543c1c.tar.bz2
protobuf-bd8a476510d17d3841ff2509fbd67b7f4b543c1c.zip
Merge pull request #1213 from jskeet/rename-preconditions
Rename Preconditions to ProtoPreconditions
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));
}