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/JsonFormatter.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/JsonFormatter.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/JsonFormatter.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/csharp/src/Google.Protobuf/JsonFormatter.cs b/csharp/src/Google.Protobuf/JsonFormatter.cs index 17495747..60f61fc8 100644 --- a/csharp/src/Google.Protobuf/JsonFormatter.cs +++ b/csharp/src/Google.Protobuf/JsonFormatter.cs @@ -141,7 +141,7 @@ namespace Google.Protobuf /// <returns>The formatted message.</returns> public string Format(IMessage message) { - Preconditions.CheckNotNull(message, nameof(message)); + ProtoPreconditions.CheckNotNull(message, nameof(message)); StringBuilder builder = new StringBuilder(); if (message.Descriptor.IsWellKnownType) { @@ -173,7 +173,7 @@ namespace Google.Protobuf /// <returns>The diagnostic-only JSON representation of the message</returns> public static string ToDiagnosticString(IMessage message) { - Preconditions.CheckNotNull(message, nameof(message)); + ProtoPreconditions.CheckNotNull(message, nameof(message)); return diagnosticFormatter.Format(message); } @@ -858,7 +858,7 @@ namespace Google.Protobuf public Settings(bool formatDefaultValues, TypeRegistry typeRegistry) { FormatDefaultValues = formatDefaultValues; - TypeRegistry = Preconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); + TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); } } } |