Commit 6bbbdfa2 authored by Jon Skeet's avatar Jon Skeet

Fix typo in oneof case enum comment

parent e2c82302
...@@ -227,7 +227,7 @@ namespace Conformance { ...@@ -227,7 +227,7 @@ namespace Conformance {
} }
private object payload_; private object payload_;
/// <summary>Enum of possibly cases for the "payload" oneof.</summary> /// <summary>Enum of possible cases for the "payload" oneof.</summary>
public enum PayloadOneofCase { public enum PayloadOneofCase {
None = 0, None = 0,
ProtobufPayload = 1, ProtobufPayload = 1,
...@@ -434,7 +434,7 @@ namespace Conformance { ...@@ -434,7 +434,7 @@ namespace Conformance {
} }
private object result_; private object result_;
/// <summary>Enum of possibly cases for the "result" oneof.</summary> /// <summary>Enum of possible cases for the "result" oneof.</summary>
public enum ResultOneofCase { public enum ResultOneofCase {
None = 0, None = 0,
ParseError = 1, ParseError = 1,
...@@ -1244,7 +1244,7 @@ namespace Conformance { ...@@ -1244,7 +1244,7 @@ namespace Conformance {
} }
private object oneofField_; private object oneofField_;
/// <summary>Enum of possibly cases for the "oneof_field" oneof.</summary> /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
public enum OneofFieldOneofCase { public enum OneofFieldOneofCase {
None = 0, None = 0,
OneofUint32 = 111, OneofUint32 = 111,
......
...@@ -1170,7 +1170,7 @@ namespace UnitTest.Issues.TestProtos { ...@@ -1170,7 +1170,7 @@ namespace UnitTest.Issues.TestProtos {
} }
private object o1_; private object o1_;
/// <summary>Enum of possibly cases for the "o1" oneof.</summary> /// <summary>Enum of possible cases for the "o1" oneof.</summary>
public enum O1OneofCase { public enum O1OneofCase {
None = 0, None = 0,
O1String = 2, O1String = 2,
...@@ -1187,7 +1187,7 @@ namespace UnitTest.Issues.TestProtos { ...@@ -1187,7 +1187,7 @@ namespace UnitTest.Issues.TestProtos {
} }
private object o2_; private object o2_;
/// <summary>Enum of possibly cases for the "o2" oneof.</summary> /// <summary>Enum of possible cases for the "o2" oneof.</summary>
public enum O2OneofCase { public enum O2OneofCase {
None = 0, None = 0,
O2Int32 = 6, O2Int32 = 6,
......
...@@ -717,7 +717,7 @@ namespace Google.Protobuf.TestProtos { ...@@ -717,7 +717,7 @@ namespace Google.Protobuf.TestProtos {
} }
private object oneofField_; private object oneofField_;
/// <summary>Enum of possibly cases for the "oneof_field" oneof.</summary> /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
public enum OneofFieldOneofCase { public enum OneofFieldOneofCase {
None = 0, None = 0,
OneofUint32 = 111, OneofUint32 = 111,
...@@ -4274,7 +4274,7 @@ namespace Google.Protobuf.TestProtos { ...@@ -4274,7 +4274,7 @@ namespace Google.Protobuf.TestProtos {
} }
private object foo_; private object foo_;
/// <summary>Enum of possibly cases for the "foo" oneof.</summary> /// <summary>Enum of possible cases for the "foo" oneof.</summary>
public enum FooOneofCase { public enum FooOneofCase {
None = 0, None = 0,
FooInt = 1, FooInt = 1,
......
...@@ -1470,7 +1470,7 @@ namespace Google.Protobuf.TestProtos { ...@@ -1470,7 +1470,7 @@ namespace Google.Protobuf.TestProtos {
} }
private object oneofField_; private object oneofField_;
/// <summary>Enum of possibly cases for the "oneof_field" oneof.</summary> /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
public enum OneofFieldOneofCase { public enum OneofFieldOneofCase {
None = 0, None = 0,
AnyField = 1, AnyField = 1,
......
...@@ -255,7 +255,7 @@ namespace Google.Protobuf.WellKnownTypes { ...@@ -255,7 +255,7 @@ namespace Google.Protobuf.WellKnownTypes {
} }
private object kind_; private object kind_;
/// <summary>Enum of possibly cases for the "kind" oneof.</summary> /// <summary>Enum of possible cases for the "kind" oneof.</summary>
public enum KindOneofCase { public enum KindOneofCase {
None = 0, None = 0,
NullValue = 1, NullValue = 1,
......
...@@ -169,7 +169,7 @@ void MessageGenerator::Generate(io::Printer* printer) { ...@@ -169,7 +169,7 @@ void MessageGenerator::Generate(io::Printer* printer) {
printer->Print( printer->Print(
vars, vars,
"private object $name$_;\n" "private object $name$_;\n"
"/// <summary>Enum of possibly cases for the \"$original_name$\" oneof.</summary>\n" "/// <summary>Enum of possible cases for the \"$original_name$\" oneof.</summary>\n"
"public enum $property_name$OneofCase {\n"); "public enum $property_name$OneofCase {\n");
printer->Indent(); printer->Indent();
printer->Print("None = 0,\n"); printer->Print("None = 0,\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment