Browse Source

Make InvalidProtocolBufferException.InvalidTag internal.

We don't need to expose the InvalidProtocolBufferException factory method now that the generated code doesn't throw the exception.
Jon Skeet 10 years ago
parent
commit
38032688a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs

+ 1 - 1
csharp/src/Google.Protobuf/InvalidProtocolBufferException.cs

@@ -70,7 +70,7 @@ namespace Google.Protobuf
         /// <summary>
         /// <summary>
         /// Creates an exception for an error condition of an invalid tag being encountered.
         /// Creates an exception for an error condition of an invalid tag being encountered.
         /// </summary>
         /// </summary>
-        public static InvalidProtocolBufferException InvalidTag()
+        internal static InvalidProtocolBufferException InvalidTag()
         {
         {
             return new InvalidProtocolBufferException(
             return new InvalidProtocolBufferException(
                 "Protocol message contained an invalid tag (zero).");
                 "Protocol message contained an invalid tag (zero).");