Make InvalidProtocolBufferException.InvalidTag internal.

We don't need to expose the InvalidProtocolBufferException factory method now that the generated code doesn't throw the exception.
This commit is contained in:
Jon Skeet 2015-08-05 17:48:53 +01:00
parent 1a57ad8b41
commit 38032688a7

View file

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