diff options
author | Jon Skeet <jonskeet@google.com> | 2016-02-04 06:51:54 +0000 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2016-02-04 14:50:43 +0000 |
commit | 7762f163a4150772be9a0eae3a285ff9b1eb3246 (patch) | |
tree | d5221ec9c489e6fc5c49460387273c3723862981 /csharp/src/Google.Protobuf/MessageParser.cs | |
parent | c78222a366edf128e4361d32958dc96d0b4d89d8 (diff) | |
download | protobuf-7762f163a4150772be9a0eae3a285ff9b1eb3246.tar.gz protobuf-7762f163a4150772be9a0eae3a285ff9b1eb3246.tar.bz2 protobuf-7762f163a4150772be9a0eae3a285ff9b1eb3246.zip |
Rename Preconditions to ProtoPreconditions
(Generated code changes in next commit.)
Diffstat (limited to 'csharp/src/Google.Protobuf/MessageParser.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/MessageParser.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/csharp/src/Google.Protobuf/MessageParser.cs b/csharp/src/Google.Protobuf/MessageParser.cs index 81be3c2a..8889638b 100644 --- a/csharp/src/Google.Protobuf/MessageParser.cs +++ b/csharp/src/Google.Protobuf/MessageParser.cs @@ -64,7 +64,7 @@ namespace Google.Protobuf /// <returns>The newly parsed message.</returns> public IMessage ParseFrom(byte[] data) { - Preconditions.CheckNotNull(data, "data"); + ProtoPreconditions.CheckNotNull(data, "data"); IMessage message = factory(); message.MergeFrom(data); return message; @@ -77,7 +77,7 @@ namespace Google.Protobuf /// <returns>The parsed message.</returns> public IMessage ParseFrom(ByteString data) { - Preconditions.CheckNotNull(data, "data"); + ProtoPreconditions.CheckNotNull(data, "data"); IMessage message = factory(); message.MergeFrom(data); return message; @@ -191,7 +191,7 @@ namespace Google.Protobuf /// <returns>The newly parsed message.</returns> public new T ParseFrom(byte[] data) { - Preconditions.CheckNotNull(data, "data"); + ProtoPreconditions.CheckNotNull(data, "data"); T message = factory(); message.MergeFrom(data); return message; @@ -204,7 +204,7 @@ namespace Google.Protobuf /// <returns>The parsed message.</returns> public new T ParseFrom(ByteString data) { - Preconditions.CheckNotNull(data, "data"); + ProtoPreconditions.CheckNotNull(data, "data"); T message = factory(); message.MergeFrom(data); return message; |