aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2017-06-28 14:55:30 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2017-06-28 14:55:30 -0700
commitff773c1aaf8a9cb8617f894f0d179329ba56f146 (patch)
treec2e1fefca1109f9448e986e95a28bc007a6653d4 /csharp
parentcd1dc3f0dfb853d7b72d8494efb5919901f2589b (diff)
fix csharp
Diffstat (limited to 'csharp')
-rw-r--r--csharp/src/Google.Protobuf.Conformance/Program.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/csharp/src/Google.Protobuf.Conformance/Program.cs b/csharp/src/Google.Protobuf.Conformance/Program.cs
index 3d792f79..8359caf7 100644
--- a/csharp/src/Google.Protobuf.Conformance/Program.cs
+++ b/csharp/src/Google.Protobuf.Conformance/Program.cs
@@ -91,22 +91,22 @@ namespace Google.Protobuf.Conformance
message = parser.Parse<ProtobufTestMessages.Proto3.TestAllTypes>(request.JsonPayload);
break;
case ConformanceRequest.PayloadOneofCase.ProtobufPayload:
- {
- if (request.MessageType.Equals("proto3"))
- {
- message = ProtobufTestMessages.Proto3.TestAllTypes.Parser.ParseFrom(request.ProtobufPayload);
- }
- else if (request.MessageType.Equals("proto2"))
- {
- response.Skipped = "Ruby doesn't support proto2";
- return response;
- }
- else
- {
- throw new Exception(" Protobuf request doesn't have specific payload type");
- }
+ {
+ if (request.MessageType.Equals("proto3"))
+ {
+ message = ProtobufTestMessages.Proto3.TestAllTypes.Parser.ParseFrom(request.ProtobufPayload);
+ }
+ else if (request.MessageType.Equals("proto2"))
+ {
+ response.Skipped = "CSharp doesn't support proto2";
+ return response;
+ }
+ else
+ {
+ throw new Exception(" Protobuf request doesn't have specific payload type");
+ }
break;
- }
+ }
default:
throw new Exception("Unsupported request payload: " + request.PayloadCase);
}