aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-08-08 07:24:57 +0100
committerJon Skeet <skeet@pobox.com>2015-08-08 07:24:57 +0100
commitcac45313235bd11b08e0803453a2ec5a7d4b652a (patch)
treeb513d3030e013c59fc2a2ef4df0be6a0509b5dc9 /csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
parentb76b76ba4f5152550fd334a6f3533d4db208f633 (diff)
parent6e16037c9933e175f62feb445ff8bd22d7727285 (diff)
downloadprotobuf-cac45313235bd11b08e0803453a2ec5a7d4b652a.tar.gz
protobuf-cac45313235bd11b08e0803453a2ec5a7d4b652a.tar.bz2
protobuf-cac45313235bd11b08e0803453a2ec5a7d4b652a.zip
Merge pull request #694 from jskeet/groups
Fix groups handling in C#
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs20
1 files changed, 4 insertions, 16 deletions
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
index 0840fa27..16634e03 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
@@ -679,10 +679,7 @@ namespace Google.Protobuf.TestProtos {
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- input.ConsumeLastField();
+ input.SkipLastField();
break;
case 10: {
if (anyField_ == null) {
@@ -1136,10 +1133,7 @@ namespace Google.Protobuf.TestProtos {
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- input.ConsumeLastField();
+ input.SkipLastField();
break;
case 10: {
anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
@@ -1757,10 +1751,7 @@ namespace Google.Protobuf.TestProtos {
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- input.ConsumeLastField();
+ input.SkipLastField();
break;
case 10: {
global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
@@ -2205,10 +2196,7 @@ namespace Google.Protobuf.TestProtos {
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- input.ConsumeLastField();
+ input.SkipLastField();
break;
case 10: {
anyField_.AddEntriesFrom(input, _map_anyField_codec);