aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers.Test/TestProtos
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-06-09 19:47:56 -0500
committerrogerk <devnull@localhost>2011-06-09 19:47:56 -0500
commitced18e10ae9ca41f338c9e788642d705dd17f9d4 (patch)
tree334ca02758aca596df2b71fb4ada50db71aa4913 /src/ProtocolBuffers.Test/TestProtos
parent367e02261c6bee9bce37cb6942bd6cbf743fb67c (diff)
downloadprotobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.tar.gz
protobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.tar.bz2
protobuf-ced18e10ae9ca41f338c9e788642d705dd17f9d4.zip
Several performance tweaks
- Removed default value assingment when default is equal to default(T) - Added Benchmarks for most types and repeated/packed arrays - Left PopsicleList's list fields uninitialized util needed - Changed CodedInputStream's repated/packed reader - Changed Enum writers to simply cast to int - Changed the WriteEnum to use object rawValue that provides .ToString() if needed - Should be fully on par with original library for performance, gaining 2x-3x in some cases
Diffstat (limited to 'src/ProtocolBuffers.Test/TestProtos')
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs16
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs152
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs152
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs2
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs2
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs4
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs2
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs4
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs152
-rw-r--r--src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs6
10 files changed, 246 insertions, 246 deletions
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
index e43026af..6131d9c1 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
@@ -2475,7 +2475,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int FooFieldNumber = 1;
private bool hasFoo;
- private int foo_ = 0;
+ private int foo_;
public bool HasFoo {
get { return hasFoo; }
}
@@ -2485,7 +2485,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Foo2FieldNumber = 2;
private bool hasFoo2;
- private int foo2_ = 0;
+ private int foo2_;
public bool HasFoo2 {
get { return hasFoo2; }
}
@@ -2495,7 +2495,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Foo3FieldNumber = 3;
private bool hasFoo3;
- private int foo3_ = 0;
+ private int foo3_;
public bool HasFoo3 {
get { return hasFoo3; }
}
@@ -2835,7 +2835,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> ComplexOpt4;
public const int WaldoFieldNumber = 1;
private bool hasWaldo;
- private int waldo_ = 0;
+ private int waldo_;
public bool HasWaldo {
get { return hasWaldo; }
}
@@ -3060,7 +3060,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int BazFieldNumber = 2;
private bool hasBaz;
- private int baz_ = 0;
+ private int baz_;
public bool HasBaz {
get { return hasBaz; }
}
@@ -3457,7 +3457,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int PlughFieldNumber = 3;
private bool hasPlugh;
- private int plugh_ = 0;
+ private int plugh_;
public bool HasPlugh {
get { return hasPlugh; }
}
@@ -3672,7 +3672,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int QuxFieldNumber = 1;
private bool hasQux;
- private int qux_ = 0;
+ private int qux_;
public bool HasQux {
get { return hasQux; }
}
@@ -3975,7 +3975,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int XyzzyFieldNumber = 7593951;
private bool hasXyzzy;
- private int xyzzy_ = 0;
+ private int xyzzy_;
public bool HasXyzzy {
get { return hasXyzzy; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs
index 00485d61..24e4c3fb 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs
@@ -188,7 +188,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field80FieldNumber = 80;
private bool hasField80;
- private bool field80_ = false;
+ private bool field80_;
public bool HasField80 {
get { return hasField80; }
}
@@ -208,7 +208,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private int field2_ = 0;
+ private int field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -218,7 +218,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private int field3_ = 0;
+ private int field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -228,7 +228,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field280FieldNumber = 280;
private bool hasField280;
- private int field280_ = 0;
+ private int field280_;
public bool HasField280 {
get { return hasField280; }
}
@@ -238,7 +238,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field6FieldNumber = 6;
private bool hasField6;
- private int field6_ = 0;
+ private int field6_;
public bool HasField6 {
get { return hasField6; }
}
@@ -248,7 +248,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field22FieldNumber = 22;
private bool hasField22;
- private long field22_ = 0L;
+ private long field22_;
public bool HasField22 {
get { return hasField22; }
}
@@ -282,7 +282,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field59FieldNumber = 59;
private bool hasField59;
- private bool field59_ = false;
+ private bool field59_;
public bool HasField59 {
get { return hasField59; }
}
@@ -302,7 +302,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field16FieldNumber = 16;
private bool hasField16;
- private int field16_ = 0;
+ private int field16_;
public bool HasField16 {
get { return hasField16; }
}
@@ -312,7 +312,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field130FieldNumber = 130;
private bool hasField130;
- private int field130_ = 0;
+ private int field130_;
public bool HasField130 {
get { return hasField130; }
}
@@ -362,7 +362,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field104FieldNumber = 104;
private bool hasField104;
- private int field104_ = 0;
+ private int field104_;
public bool HasField104 {
get { return hasField104; }
}
@@ -372,7 +372,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field100FieldNumber = 100;
private bool hasField100;
- private int field100_ = 0;
+ private int field100_;
public bool HasField100 {
get { return hasField100; }
}
@@ -382,7 +382,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field101FieldNumber = 101;
private bool hasField101;
- private int field101_ = 0;
+ private int field101_;
public bool HasField101 {
get { return hasField101; }
}
@@ -412,7 +412,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field29FieldNumber = 29;
private bool hasField29;
- private int field29_ = 0;
+ private int field29_;
public bool HasField29 {
get { return hasField29; }
}
@@ -422,7 +422,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field30FieldNumber = 30;
private bool hasField30;
- private bool field30_ = false;
+ private bool field30_;
public bool HasField30 {
get { return hasField30; }
}
@@ -462,7 +462,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field150FieldNumber = 150;
private bool hasField150;
- private int field150_ = 0;
+ private int field150_;
public bool HasField150 {
get { return hasField150; }
}
@@ -472,7 +472,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field23FieldNumber = 23;
private bool hasField23;
- private int field23_ = 0;
+ private int field23_;
public bool HasField23 {
get { return hasField23; }
}
@@ -482,7 +482,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field24FieldNumber = 24;
private bool hasField24;
- private bool field24_ = false;
+ private bool field24_;
public bool HasField24 {
get { return hasField24; }
}
@@ -492,7 +492,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field25FieldNumber = 25;
private bool hasField25;
- private int field25_ = 0;
+ private int field25_;
public bool HasField25 {
get { return hasField25; }
}
@@ -512,7 +512,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field78FieldNumber = 78;
private bool hasField78;
- private bool field78_ = false;
+ private bool field78_;
public bool HasField78 {
get { return hasField78; }
}
@@ -522,7 +522,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field67FieldNumber = 67;
private bool hasField67;
- private int field67_ = 0;
+ private int field67_;
public bool HasField67 {
get { return hasField67; }
}
@@ -532,7 +532,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field68FieldNumber = 68;
private bool hasField68;
- private int field68_ = 0;
+ private int field68_;
public bool HasField68 {
get { return hasField68; }
}
@@ -542,7 +542,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field128FieldNumber = 128;
private bool hasField128;
- private int field128_ = 0;
+ private int field128_;
public bool HasField128 {
get { return hasField128; }
}
@@ -562,7 +562,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field131FieldNumber = 131;
private bool hasField131;
- private int field131_ = 0;
+ private int field131_;
public bool HasField131 {
get { return hasField131; }
}
@@ -1459,7 +1459,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field1FieldNumber = 1;
private bool hasField1;
- private int field1_ = 0;
+ private int field1_;
public bool HasField1 {
get { return hasField1; }
}
@@ -1469,7 +1469,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private int field2_ = 0;
+ private int field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -1479,7 +1479,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private int field3_ = 0;
+ private int field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -1509,7 +1509,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field13FieldNumber = 13;
private bool hasField13;
- private long field13_ = 0L;
+ private long field13_;
public bool HasField13 {
get { return hasField13; }
}
@@ -1519,7 +1519,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field14FieldNumber = 14;
private bool hasField14;
- private long field14_ = 0L;
+ private long field14_;
public bool HasField14 {
get { return hasField14; }
}
@@ -1529,7 +1529,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field16FieldNumber = 16;
private bool hasField16;
- private int field16_ = 0;
+ private int field16_;
public bool HasField16 {
get { return hasField16; }
}
@@ -1569,7 +1569,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field21FieldNumber = 21;
private bool hasField21;
- private ulong field21_ = 0;
+ private ulong field21_;
public bool HasField21 {
get { return hasField21; }
}
@@ -1580,7 +1580,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field22FieldNumber = 22;
private bool hasField22;
- private int field22_ = 0;
+ private int field22_;
public bool HasField22 {
get { return hasField22; }
}
@@ -1590,7 +1590,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field23FieldNumber = 23;
private bool hasField23;
- private bool field23_ = false;
+ private bool field23_;
public bool HasField23 {
get { return hasField23; }
}
@@ -1600,7 +1600,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field206FieldNumber = 206;
private bool hasField206;
- private bool field206_ = false;
+ private bool field206_;
public bool HasField206 {
get { return hasField206; }
}
@@ -1610,7 +1610,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field203FieldNumber = 203;
private bool hasField203;
- private uint field203_ = 0;
+ private uint field203_;
public bool HasField203 {
get { return hasField203; }
}
@@ -1621,7 +1621,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field204FieldNumber = 204;
private bool hasField204;
- private int field204_ = 0;
+ private int field204_;
public bool HasField204 {
get { return hasField204; }
}
@@ -1641,7 +1641,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field207FieldNumber = 207;
private bool hasField207;
- private ulong field207_ = 0UL;
+ private ulong field207_;
public bool HasField207 {
get { return hasField207; }
}
@@ -1652,7 +1652,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field300FieldNumber = 300;
private bool hasField300;
- private ulong field300_ = 0UL;
+ private ulong field300_;
public bool HasField300 {
get { return hasField300; }
}
@@ -2172,7 +2172,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field11FieldNumber = 11;
private bool hasField11;
- private float field11_ = 0F;
+ private float field11_;
public bool HasField11 {
get { return hasField11; }
}
@@ -2182,7 +2182,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field26FieldNumber = 26;
private bool hasField26;
- private float field26_ = 0F;
+ private float field26_;
public bool HasField26 {
get { return hasField26; }
}
@@ -2224,7 +2224,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field15FieldNumber = 15;
private bool hasField15;
- private ulong field15_ = 0UL;
+ private ulong field15_;
public bool HasField15 {
get { return hasField15; }
}
@@ -2235,7 +2235,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field5FieldNumber = 5;
private bool hasField5;
- private int field5_ = 0;
+ private int field5_;
public bool HasField5 {
get { return hasField5; }
}
@@ -2255,7 +2255,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field28FieldNumber = 28;
private bool hasField28;
- private int field28_ = 0;
+ private int field28_;
public bool HasField28 {
get { return hasField28; }
}
@@ -2309,7 +2309,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field20FieldNumber = 20;
private bool hasField20;
- private int field20_ = 0;
+ private int field20_;
public bool HasField20 {
get { return hasField20; }
}
@@ -2781,7 +2781,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private long field3_ = 0L;
+ private long field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -2791,7 +2791,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field4FieldNumber = 4;
private bool hasField4;
- private long field4_ = 0L;
+ private long field4_;
public bool HasField4 {
get { return hasField4; }
}
@@ -2801,7 +2801,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field30FieldNumber = 30;
private bool hasField30;
- private long field30_ = 0L;
+ private long field30_;
public bool HasField30 {
get { return hasField30; }
}
@@ -2811,7 +2811,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field75FieldNumber = 75;
private bool hasField75;
- private bool field75_ = false;
+ private bool field75_;
public bool HasField75 {
get { return hasField75; }
}
@@ -2841,7 +2841,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field21FieldNumber = 21;
private bool hasField21;
- private int field21_ = 0;
+ private int field21_;
public bool HasField21 {
get { return hasField21; }
}
@@ -2851,7 +2851,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field71FieldNumber = 71;
private bool hasField71;
- private int field71_ = 0;
+ private int field71_;
public bool HasField71 {
get { return hasField71; }
}
@@ -2861,7 +2861,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field25FieldNumber = 25;
private bool hasField25;
- private float field25_ = 0F;
+ private float field25_;
public bool HasField25 {
get { return hasField25; }
}
@@ -2871,7 +2871,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field109FieldNumber = 109;
private bool hasField109;
- private int field109_ = 0;
+ private int field109_;
public bool HasField109 {
get { return hasField109; }
}
@@ -2881,7 +2881,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field210FieldNumber = 210;
private bool hasField210;
- private int field210_ = 0;
+ private int field210_;
public bool HasField210 {
get { return hasField210; }
}
@@ -2891,7 +2891,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field211FieldNumber = 211;
private bool hasField211;
- private int field211_ = 0;
+ private int field211_;
public bool HasField211 {
get { return hasField211; }
}
@@ -2901,7 +2901,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field212FieldNumber = 212;
private bool hasField212;
- private int field212_ = 0;
+ private int field212_;
public bool HasField212 {
get { return hasField212; }
}
@@ -2911,7 +2911,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field213FieldNumber = 213;
private bool hasField213;
- private int field213_ = 0;
+ private int field213_;
public bool HasField213 {
get { return hasField213; }
}
@@ -2921,7 +2921,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field216FieldNumber = 216;
private bool hasField216;
- private int field216_ = 0;
+ private int field216_;
public bool HasField216 {
get { return hasField216; }
}
@@ -2931,7 +2931,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field217FieldNumber = 217;
private bool hasField217;
- private int field217_ = 0;
+ private int field217_;
public bool HasField217 {
get { return hasField217; }
}
@@ -2941,7 +2941,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field218FieldNumber = 218;
private bool hasField218;
- private int field218_ = 0;
+ private int field218_;
public bool HasField218 {
get { return hasField218; }
}
@@ -2951,7 +2951,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field220FieldNumber = 220;
private bool hasField220;
- private int field220_ = 0;
+ private int field220_;
public bool HasField220 {
get { return hasField220; }
}
@@ -2961,7 +2961,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field221FieldNumber = 221;
private bool hasField221;
- private int field221_ = 0;
+ private int field221_;
public bool HasField221 {
get { return hasField221; }
}
@@ -2971,7 +2971,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field222FieldNumber = 222;
private bool hasField222;
- private float field222_ = 0F;
+ private float field222_;
public bool HasField222 {
get { return hasField222; }
}
@@ -2981,7 +2981,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field63FieldNumber = 63;
private bool hasField63;
- private int field63_ = 0;
+ private int field63_;
public bool HasField63 {
get { return hasField63; }
}
@@ -3015,7 +3015,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field131FieldNumber = 131;
private bool hasField131;
- private long field131_ = 0L;
+ private long field131_;
public bool HasField131 {
get { return hasField131; }
}
@@ -3037,7 +3037,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field129FieldNumber = 129;
private bool hasField129;
- private int field129_ = 0;
+ private int field129_;
public bool HasField129 {
get { return hasField129; }
}
@@ -3059,7 +3059,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field205FieldNumber = 205;
private bool hasField205;
- private bool field205_ = false;
+ private bool field205_;
public bool HasField205 {
get { return hasField205; }
}
@@ -3069,7 +3069,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field206FieldNumber = 206;
private bool hasField206;
- private bool field206_ = false;
+ private bool field206_;
public bool HasField206 {
get { return hasField206; }
}
@@ -3783,7 +3783,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field1FieldNumber = 1;
private bool hasField1;
- private float field1_ = 0F;
+ private float field1_;
public bool HasField1 {
get { return hasField1; }
}
@@ -3793,7 +3793,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private float field2_ = 0F;
+ private float field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -3803,7 +3803,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private float field3_ = 0F;
+ private float field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -3813,7 +3813,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field4FieldNumber = 4;
private bool hasField4;
- private bool field4_ = false;
+ private bool field4_;
public bool HasField4 {
get { return hasField4; }
}
@@ -3823,7 +3823,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field5FieldNumber = 5;
private bool hasField5;
- private bool field5_ = false;
+ private bool field5_;
public bool HasField5 {
get { return hasField5; }
}
@@ -3843,7 +3843,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field7FieldNumber = 7;
private bool hasField7;
- private bool field7_ = false;
+ private bool field7_;
public bool HasField7 {
get { return hasField7; }
}
@@ -3853,7 +3853,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field8FieldNumber = 8;
private bool hasField8;
- private float field8_ = 0F;
+ private float field8_;
public bool HasField8 {
get { return hasField8; }
}
@@ -3863,7 +3863,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field9FieldNumber = 9;
private bool hasField9;
- private bool field9_ = false;
+ private bool field9_;
public bool HasField9 {
get { return hasField9; }
}
@@ -3873,7 +3873,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field10FieldNumber = 10;
private bool hasField10;
- private float field10_ = 0F;
+ private float field10_;
public bool HasField10 {
get { return hasField10; }
}
@@ -3883,7 +3883,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field11FieldNumber = 11;
private bool hasField11;
- private long field11_ = 0L;
+ private long field11_;
public bool HasField11 {
get { return hasField11; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
index f54a54b4..7d4a65b7 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
@@ -190,7 +190,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field80FieldNumber = 80;
private bool hasField80;
- private bool field80_ = false;
+ private bool field80_;
public bool HasField80 {
get { return hasField80; }
}
@@ -210,7 +210,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private int field2_ = 0;
+ private int field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -220,7 +220,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private int field3_ = 0;
+ private int field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -230,7 +230,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field280FieldNumber = 280;
private bool hasField280;
- private int field280_ = 0;
+ private int field280_;
public bool HasField280 {
get { return hasField280; }
}
@@ -240,7 +240,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field6FieldNumber = 6;
private bool hasField6;
- private int field6_ = 0;
+ private int field6_;
public bool HasField6 {
get { return hasField6; }
}
@@ -250,7 +250,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field22FieldNumber = 22;
private bool hasField22;
- private long field22_ = 0L;
+ private long field22_;
public bool HasField22 {
get { return hasField22; }
}
@@ -284,7 +284,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field59FieldNumber = 59;
private bool hasField59;
- private bool field59_ = false;
+ private bool field59_;
public bool HasField59 {
get { return hasField59; }
}
@@ -304,7 +304,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field16FieldNumber = 16;
private bool hasField16;
- private int field16_ = 0;
+ private int field16_;
public bool HasField16 {
get { return hasField16; }
}
@@ -314,7 +314,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field130FieldNumber = 130;
private bool hasField130;
- private int field130_ = 0;
+ private int field130_;
public bool HasField130 {
get { return hasField130; }
}
@@ -364,7 +364,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field104FieldNumber = 104;
private bool hasField104;
- private int field104_ = 0;
+ private int field104_;
public bool HasField104 {
get { return hasField104; }
}
@@ -374,7 +374,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field100FieldNumber = 100;
private bool hasField100;
- private int field100_ = 0;
+ private int field100_;
public bool HasField100 {
get { return hasField100; }
}
@@ -384,7 +384,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field101FieldNumber = 101;
private bool hasField101;
- private int field101_ = 0;
+ private int field101_;
public bool HasField101 {
get { return hasField101; }
}
@@ -414,7 +414,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field29FieldNumber = 29;
private bool hasField29;
- private int field29_ = 0;
+ private int field29_;
public bool HasField29 {
get { return hasField29; }
}
@@ -424,7 +424,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field30FieldNumber = 30;
private bool hasField30;
- private bool field30_ = false;
+ private bool field30_;
public bool HasField30 {
get { return hasField30; }
}
@@ -464,7 +464,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field150FieldNumber = 150;
private bool hasField150;
- private int field150_ = 0;
+ private int field150_;
public bool HasField150 {
get { return hasField150; }
}
@@ -474,7 +474,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field23FieldNumber = 23;
private bool hasField23;
- private int field23_ = 0;
+ private int field23_;
public bool HasField23 {
get { return hasField23; }
}
@@ -484,7 +484,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field24FieldNumber = 24;
private bool hasField24;
- private bool field24_ = false;
+ private bool field24_;
public bool HasField24 {
get { return hasField24; }
}
@@ -494,7 +494,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field25FieldNumber = 25;
private bool hasField25;
- private int field25_ = 0;
+ private int field25_;
public bool HasField25 {
get { return hasField25; }
}
@@ -514,7 +514,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field78FieldNumber = 78;
private bool hasField78;
- private bool field78_ = false;
+ private bool field78_;
public bool HasField78 {
get { return hasField78; }
}
@@ -524,7 +524,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field67FieldNumber = 67;
private bool hasField67;
- private int field67_ = 0;
+ private int field67_;
public bool HasField67 {
get { return hasField67; }
}
@@ -534,7 +534,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field68FieldNumber = 68;
private bool hasField68;
- private int field68_ = 0;
+ private int field68_;
public bool HasField68 {
get { return hasField68; }
}
@@ -544,7 +544,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field128FieldNumber = 128;
private bool hasField128;
- private int field128_ = 0;
+ private int field128_;
public bool HasField128 {
get { return hasField128; }
}
@@ -564,7 +564,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field131FieldNumber = 131;
private bool hasField131;
- private int field131_ = 0;
+ private int field131_;
public bool HasField131 {
get { return hasField131; }
}
@@ -2095,7 +2095,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field1FieldNumber = 1;
private bool hasField1;
- private int field1_ = 0;
+ private int field1_;
public bool HasField1 {
get { return hasField1; }
}
@@ -2105,7 +2105,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private int field2_ = 0;
+ private int field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -2115,7 +2115,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private int field3_ = 0;
+ private int field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -2145,7 +2145,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field13FieldNumber = 13;
private bool hasField13;
- private long field13_ = 0L;
+ private long field13_;
public bool HasField13 {
get { return hasField13; }
}
@@ -2155,7 +2155,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field14FieldNumber = 14;
private bool hasField14;
- private long field14_ = 0L;
+ private long field14_;
public bool HasField14 {
get { return hasField14; }
}
@@ -2165,7 +2165,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field16FieldNumber = 16;
private bool hasField16;
- private int field16_ = 0;
+ private int field16_;
public bool HasField16 {
get { return hasField16; }
}
@@ -2205,7 +2205,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field21FieldNumber = 21;
private bool hasField21;
- private ulong field21_ = 0;
+ private ulong field21_;
public bool HasField21 {
get { return hasField21; }
}
@@ -2216,7 +2216,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field22FieldNumber = 22;
private bool hasField22;
- private int field22_ = 0;
+ private int field22_;
public bool HasField22 {
get { return hasField22; }
}
@@ -2226,7 +2226,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field23FieldNumber = 23;
private bool hasField23;
- private bool field23_ = false;
+ private bool field23_;
public bool HasField23 {
get { return hasField23; }
}
@@ -2236,7 +2236,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field206FieldNumber = 206;
private bool hasField206;
- private bool field206_ = false;
+ private bool field206_;
public bool HasField206 {
get { return hasField206; }
}
@@ -2246,7 +2246,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field203FieldNumber = 203;
private bool hasField203;
- private uint field203_ = 0;
+ private uint field203_;
public bool HasField203 {
get { return hasField203; }
}
@@ -2257,7 +2257,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field204FieldNumber = 204;
private bool hasField204;
- private int field204_ = 0;
+ private int field204_;
public bool HasField204 {
get { return hasField204; }
}
@@ -2277,7 +2277,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field207FieldNumber = 207;
private bool hasField207;
- private ulong field207_ = 0UL;
+ private ulong field207_;
public bool HasField207 {
get { return hasField207; }
}
@@ -2288,7 +2288,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field300FieldNumber = 300;
private bool hasField300;
- private ulong field300_ = 0UL;
+ private ulong field300_;
public bool HasField300 {
get { return hasField300; }
}
@@ -3159,7 +3159,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field11FieldNumber = 11;
private bool hasField11;
- private float field11_ = 0F;
+ private float field11_;
public bool HasField11 {
get { return hasField11; }
}
@@ -3169,7 +3169,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field26FieldNumber = 26;
private bool hasField26;
- private float field26_ = 0F;
+ private float field26_;
public bool HasField26 {
get { return hasField26; }
}
@@ -3211,7 +3211,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field15FieldNumber = 15;
private bool hasField15;
- private ulong field15_ = 0UL;
+ private ulong field15_;
public bool HasField15 {
get { return hasField15; }
}
@@ -3222,7 +3222,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field5FieldNumber = 5;
private bool hasField5;
- private int field5_ = 0;
+ private int field5_;
public bool HasField5 {
get { return hasField5; }
}
@@ -3242,7 +3242,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field28FieldNumber = 28;
private bool hasField28;
- private int field28_ = 0;
+ private int field28_;
public bool HasField28 {
get { return hasField28; }
}
@@ -3296,7 +3296,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field20FieldNumber = 20;
private bool hasField20;
- private int field20_ = 0;
+ private int field20_;
public bool HasField20 {
get { return hasField20; }
}
@@ -4086,7 +4086,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private long field3_ = 0L;
+ private long field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -4096,7 +4096,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field4FieldNumber = 4;
private bool hasField4;
- private long field4_ = 0L;
+ private long field4_;
public bool HasField4 {
get { return hasField4; }
}
@@ -4106,7 +4106,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field30FieldNumber = 30;
private bool hasField30;
- private long field30_ = 0L;
+ private long field30_;
public bool HasField30 {
get { return hasField30; }
}
@@ -4116,7 +4116,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field75FieldNumber = 75;
private bool hasField75;
- private bool field75_ = false;
+ private bool field75_;
public bool HasField75 {
get { return hasField75; }
}
@@ -4146,7 +4146,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field21FieldNumber = 21;
private bool hasField21;
- private int field21_ = 0;
+ private int field21_;
public bool HasField21 {
get { return hasField21; }
}
@@ -4156,7 +4156,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field71FieldNumber = 71;
private bool hasField71;
- private int field71_ = 0;
+ private int field71_;
public bool HasField71 {
get { return hasField71; }
}
@@ -4166,7 +4166,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field25FieldNumber = 25;
private bool hasField25;
- private float field25_ = 0F;
+ private float field25_;
public bool HasField25 {
get { return hasField25; }
}
@@ -4176,7 +4176,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field109FieldNumber = 109;
private bool hasField109;
- private int field109_ = 0;
+ private int field109_;
public bool HasField109 {
get { return hasField109; }
}
@@ -4186,7 +4186,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field210FieldNumber = 210;
private bool hasField210;
- private int field210_ = 0;
+ private int field210_;
public bool HasField210 {
get { return hasField210; }
}
@@ -4196,7 +4196,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field211FieldNumber = 211;
private bool hasField211;
- private int field211_ = 0;
+ private int field211_;
public bool HasField211 {
get { return hasField211; }
}
@@ -4206,7 +4206,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field212FieldNumber = 212;
private bool hasField212;
- private int field212_ = 0;
+ private int field212_;
public bool HasField212 {
get { return hasField212; }
}
@@ -4216,7 +4216,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field213FieldNumber = 213;
private bool hasField213;
- private int field213_ = 0;
+ private int field213_;
public bool HasField213 {
get { return hasField213; }
}
@@ -4226,7 +4226,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field216FieldNumber = 216;
private bool hasField216;
- private int field216_ = 0;
+ private int field216_;
public bool HasField216 {
get { return hasField216; }
}
@@ -4236,7 +4236,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field217FieldNumber = 217;
private bool hasField217;
- private int field217_ = 0;
+ private int field217_;
public bool HasField217 {
get { return hasField217; }
}
@@ -4246,7 +4246,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field218FieldNumber = 218;
private bool hasField218;
- private int field218_ = 0;
+ private int field218_;
public bool HasField218 {
get { return hasField218; }
}
@@ -4256,7 +4256,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field220FieldNumber = 220;
private bool hasField220;
- private int field220_ = 0;
+ private int field220_;
public bool HasField220 {
get { return hasField220; }
}
@@ -4266,7 +4266,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field221FieldNumber = 221;
private bool hasField221;
- private int field221_ = 0;
+ private int field221_;
public bool HasField221 {
get { return hasField221; }
}
@@ -4276,7 +4276,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field222FieldNumber = 222;
private bool hasField222;
- private float field222_ = 0F;
+ private float field222_;
public bool HasField222 {
get { return hasField222; }
}
@@ -4286,7 +4286,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field63FieldNumber = 63;
private bool hasField63;
- private int field63_ = 0;
+ private int field63_;
public bool HasField63 {
get { return hasField63; }
}
@@ -4320,7 +4320,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field131FieldNumber = 131;
private bool hasField131;
- private long field131_ = 0L;
+ private long field131_;
public bool HasField131 {
get { return hasField131; }
}
@@ -4342,7 +4342,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field129FieldNumber = 129;
private bool hasField129;
- private int field129_ = 0;
+ private int field129_;
public bool HasField129 {
get { return hasField129; }
}
@@ -4364,7 +4364,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field205FieldNumber = 205;
private bool hasField205;
- private bool field205_ = false;
+ private bool field205_;
public bool HasField205 {
get { return hasField205; }
}
@@ -4374,7 +4374,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field206FieldNumber = 206;
private bool hasField206;
- private bool field206_ = false;
+ private bool field206_;
public bool HasField206 {
get { return hasField206; }
}
@@ -5583,7 +5583,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field1FieldNumber = 1;
private bool hasField1;
- private float field1_ = 0F;
+ private float field1_;
public bool HasField1 {
get { return hasField1; }
}
@@ -5593,7 +5593,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field2FieldNumber = 2;
private bool hasField2;
- private float field2_ = 0F;
+ private float field2_;
public bool HasField2 {
get { return hasField2; }
}
@@ -5603,7 +5603,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field3FieldNumber = 3;
private bool hasField3;
- private float field3_ = 0F;
+ private float field3_;
public bool HasField3 {
get { return hasField3; }
}
@@ -5613,7 +5613,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field4FieldNumber = 4;
private bool hasField4;
- private bool field4_ = false;
+ private bool field4_;
public bool HasField4 {
get { return hasField4; }
}
@@ -5623,7 +5623,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field5FieldNumber = 5;
private bool hasField5;
- private bool field5_ = false;
+ private bool field5_;
public bool HasField5 {
get { return hasField5; }
}
@@ -5643,7 +5643,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field7FieldNumber = 7;
private bool hasField7;
- private bool field7_ = false;
+ private bool field7_;
public bool HasField7 {
get { return hasField7; }
}
@@ -5653,7 +5653,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field8FieldNumber = 8;
private bool hasField8;
- private float field8_ = 0F;
+ private float field8_;
public bool HasField8 {
get { return hasField8; }
}
@@ -5663,7 +5663,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field9FieldNumber = 9;
private bool hasField9;
- private bool field9_ = false;
+ private bool field9_;
public bool HasField9 {
get { return hasField9; }
}
@@ -5673,7 +5673,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field10FieldNumber = 10;
private bool hasField10;
- private float field10_ = 0F;
+ private float field10_;
public bool HasField10 {
get { return hasField10; }
}
@@ -5683,7 +5683,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Field11FieldNumber = 11;
private bool hasField11;
- private long field11_ = 0L;
+ private long field11_;
public bool HasField11 {
get { return hasField11; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
index dc4ea545..3b869a33 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
@@ -58,7 +58,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DFieldNumber = 1;
private bool hasD;
- private int d_ = 0;
+ private int d_;
public bool HasD {
get { return hasD; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
index adf6fd19..0f5bf322 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
@@ -94,7 +94,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DFieldNumber = 1;
private bool hasD;
- private int d_ = 0;
+ private int d_;
public bool HasD {
get { return hasD; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
index fe468925..ec1670f1 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
@@ -593,7 +593,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension1> MessageSetExtension;
public const int IFieldNumber = 15;
private bool hasI;
- private int i_ = 0;
+ private int i_;
public bool HasI {
get { return hasI; }
}
@@ -1106,7 +1106,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int TypeIdFieldNumber = 2;
private bool hasTypeId;
- private int typeId_ = 0;
+ private int typeId_;
public bool HasTypeId {
get { return hasTypeId; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
index 6706c946..d4bda6df 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
@@ -104,7 +104,7 @@ namespace Google.ProtocolBuffers.TestProtos.NoGenericService {
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
index c95191a6..3418af94 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
@@ -110,7 +110,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequiredOptimizedForSize> TestExtension2;
public const int IFieldNumber = 1;
private bool hasI;
- private int i_ = 0;
+ private int i_;
public bool HasI {
get { return hasI; }
}
@@ -293,7 +293,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int XFieldNumber = 1;
private bool hasX;
- private int x_ = 0;
+ private int x_;
public bool HasX {
get { return hasX; }
}
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
index bf7d0daf..a3294ca1 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
@@ -1185,7 +1185,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int BbFieldNumber = 1;
private bool hasBb;
- private int bb_ = 0;
+ private int bb_;
public bool HasBb {
get { return hasBb; }
}
@@ -1424,7 +1424,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 17;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -1663,7 +1663,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 47;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -1878,7 +1878,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalInt32FieldNumber = 1;
private bool hasOptionalInt32;
- private int optionalInt32_ = 0;
+ private int optionalInt32_;
public bool HasOptionalInt32 {
get { return hasOptionalInt32; }
}
@@ -1888,7 +1888,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalInt64FieldNumber = 2;
private bool hasOptionalInt64;
- private long optionalInt64_ = 0L;
+ private long optionalInt64_;
public bool HasOptionalInt64 {
get { return hasOptionalInt64; }
}
@@ -1898,7 +1898,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalUint32FieldNumber = 3;
private bool hasOptionalUint32;
- private uint optionalUint32_ = 0;
+ private uint optionalUint32_;
public bool HasOptionalUint32 {
get { return hasOptionalUint32; }
}
@@ -1909,7 +1909,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalUint64FieldNumber = 4;
private bool hasOptionalUint64;
- private ulong optionalUint64_ = 0UL;
+ private ulong optionalUint64_;
public bool HasOptionalUint64 {
get { return hasOptionalUint64; }
}
@@ -1920,7 +1920,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalSint32FieldNumber = 5;
private bool hasOptionalSint32;
- private int optionalSint32_ = 0;
+ private int optionalSint32_;
public bool HasOptionalSint32 {
get { return hasOptionalSint32; }
}
@@ -1930,7 +1930,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalSint64FieldNumber = 6;
private bool hasOptionalSint64;
- private long optionalSint64_ = 0;
+ private long optionalSint64_;
public bool HasOptionalSint64 {
get { return hasOptionalSint64; }
}
@@ -1940,7 +1940,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalFixed32FieldNumber = 7;
private bool hasOptionalFixed32;
- private uint optionalFixed32_ = 0;
+ private uint optionalFixed32_;
public bool HasOptionalFixed32 {
get { return hasOptionalFixed32; }
}
@@ -1951,7 +1951,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalFixed64FieldNumber = 8;
private bool hasOptionalFixed64;
- private ulong optionalFixed64_ = 0;
+ private ulong optionalFixed64_;
public bool HasOptionalFixed64 {
get { return hasOptionalFixed64; }
}
@@ -1962,7 +1962,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalSfixed32FieldNumber = 9;
private bool hasOptionalSfixed32;
- private int optionalSfixed32_ = 0;
+ private int optionalSfixed32_;
public bool HasOptionalSfixed32 {
get { return hasOptionalSfixed32; }
}
@@ -1972,7 +1972,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalSfixed64FieldNumber = 10;
private bool hasOptionalSfixed64;
- private long optionalSfixed64_ = 0;
+ private long optionalSfixed64_;
public bool HasOptionalSfixed64 {
get { return hasOptionalSfixed64; }
}
@@ -1982,7 +1982,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalFloatFieldNumber = 11;
private bool hasOptionalFloat;
- private float optionalFloat_ = 0F;
+ private float optionalFloat_;
public bool HasOptionalFloat {
get { return hasOptionalFloat; }
}
@@ -1992,7 +1992,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalDoubleFieldNumber = 12;
private bool hasOptionalDouble;
- private double optionalDouble_ = 0D;
+ private double optionalDouble_;
public bool HasOptionalDouble {
get { return hasOptionalDouble; }
}
@@ -2002,7 +2002,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalBoolFieldNumber = 13;
private bool hasOptionalBool;
- private bool optionalBool_ = false;
+ private bool optionalBool_;
public bool HasOptionalBool {
get { return hasOptionalBool; }
}
@@ -2687,13 +2687,13 @@ namespace Google.ProtocolBuffers.TestProtos {
output.WriteMessage(20, field_names[30], OptionalImportMessage);
}
if (hasOptionalNestedEnum) {
- output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum.ToString());
+ output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum);
}
if (hasOptionalForeignEnum) {
- output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum.ToString());
+ output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum);
}
if (hasOptionalImportEnum) {
- output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum.ToString());
+ output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum);
}
if (hasOptionalStringPiece) {
output.WriteString(24, field_names[40], OptionalStringPiece);
@@ -2819,13 +2819,13 @@ namespace Google.ProtocolBuffers.TestProtos {
output.WriteBytes(75, field_names[1], DefaultBytes);
}
if (hasDefaultNestedEnum) {
- output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum.ToString());
+ output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
}
if (hasDefaultForeignEnum) {
- output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum.ToString());
+ output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
}
if (hasDefaultImportEnum) {
- output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum.ToString());
+ output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
}
if (hasDefaultStringPiece) {
output.WriteString(84, field_names[17], DefaultStringPiece);
@@ -5519,7 +5519,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DeprecatedInt32FieldNumber = 1;
private bool hasDeprecatedInt32;
- private int deprecatedInt32_ = 0;
+ private int deprecatedInt32_;
public bool HasDeprecatedInt32 {
get { return hasDeprecatedInt32; }
}
@@ -5758,7 +5758,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int CFieldNumber = 1;
private bool hasC;
- private int c_ = 0;
+ private int c_;
public bool HasC {
get { return hasC; }
}
@@ -6200,7 +6200,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 17;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -6439,7 +6439,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 47;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -6882,7 +6882,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi;
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -6892,7 +6892,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy2FieldNumber = 2;
private bool hasDummy2;
- private int dummy2_ = 0;
+ private int dummy2_;
public bool HasDummy2 {
get { return hasDummy2; }
}
@@ -6902,7 +6902,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int BFieldNumber = 3;
private bool hasB;
- private int b_ = 0;
+ private int b_;
public bool HasB {
get { return hasB; }
}
@@ -6912,7 +6912,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy4FieldNumber = 4;
private bool hasDummy4;
- private int dummy4_ = 0;
+ private int dummy4_;
public bool HasDummy4 {
get { return hasDummy4; }
}
@@ -6922,7 +6922,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy5FieldNumber = 5;
private bool hasDummy5;
- private int dummy5_ = 0;
+ private int dummy5_;
public bool HasDummy5 {
get { return hasDummy5; }
}
@@ -6932,7 +6932,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy6FieldNumber = 6;
private bool hasDummy6;
- private int dummy6_ = 0;
+ private int dummy6_;
public bool HasDummy6 {
get { return hasDummy6; }
}
@@ -6942,7 +6942,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy7FieldNumber = 7;
private bool hasDummy7;
- private int dummy7_ = 0;
+ private int dummy7_;
public bool HasDummy7 {
get { return hasDummy7; }
}
@@ -6952,7 +6952,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy8FieldNumber = 8;
private bool hasDummy8;
- private int dummy8_ = 0;
+ private int dummy8_;
public bool HasDummy8 {
get { return hasDummy8; }
}
@@ -6962,7 +6962,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy9FieldNumber = 9;
private bool hasDummy9;
- private int dummy9_ = 0;
+ private int dummy9_;
public bool HasDummy9 {
get { return hasDummy9; }
}
@@ -6972,7 +6972,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy10FieldNumber = 10;
private bool hasDummy10;
- private int dummy10_ = 0;
+ private int dummy10_;
public bool HasDummy10 {
get { return hasDummy10; }
}
@@ -6982,7 +6982,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy11FieldNumber = 11;
private bool hasDummy11;
- private int dummy11_ = 0;
+ private int dummy11_;
public bool HasDummy11 {
get { return hasDummy11; }
}
@@ -6992,7 +6992,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy12FieldNumber = 12;
private bool hasDummy12;
- private int dummy12_ = 0;
+ private int dummy12_;
public bool HasDummy12 {
get { return hasDummy12; }
}
@@ -7002,7 +7002,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy13FieldNumber = 13;
private bool hasDummy13;
- private int dummy13_ = 0;
+ private int dummy13_;
public bool HasDummy13 {
get { return hasDummy13; }
}
@@ -7012,7 +7012,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy14FieldNumber = 14;
private bool hasDummy14;
- private int dummy14_ = 0;
+ private int dummy14_;
public bool HasDummy14 {
get { return hasDummy14; }
}
@@ -7022,7 +7022,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy15FieldNumber = 15;
private bool hasDummy15;
- private int dummy15_ = 0;
+ private int dummy15_;
public bool HasDummy15 {
get { return hasDummy15; }
}
@@ -7032,7 +7032,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy16FieldNumber = 16;
private bool hasDummy16;
- private int dummy16_ = 0;
+ private int dummy16_;
public bool HasDummy16 {
get { return hasDummy16; }
}
@@ -7042,7 +7042,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy17FieldNumber = 17;
private bool hasDummy17;
- private int dummy17_ = 0;
+ private int dummy17_;
public bool HasDummy17 {
get { return hasDummy17; }
}
@@ -7052,7 +7052,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy18FieldNumber = 18;
private bool hasDummy18;
- private int dummy18_ = 0;
+ private int dummy18_;
public bool HasDummy18 {
get { return hasDummy18; }
}
@@ -7062,7 +7062,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy19FieldNumber = 19;
private bool hasDummy19;
- private int dummy19_ = 0;
+ private int dummy19_;
public bool HasDummy19 {
get { return hasDummy19; }
}
@@ -7072,7 +7072,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy20FieldNumber = 20;
private bool hasDummy20;
- private int dummy20_ = 0;
+ private int dummy20_;
public bool HasDummy20 {
get { return hasDummy20; }
}
@@ -7082,7 +7082,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy21FieldNumber = 21;
private bool hasDummy21;
- private int dummy21_ = 0;
+ private int dummy21_;
public bool HasDummy21 {
get { return hasDummy21; }
}
@@ -7092,7 +7092,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy22FieldNumber = 22;
private bool hasDummy22;
- private int dummy22_ = 0;
+ private int dummy22_;
public bool HasDummy22 {
get { return hasDummy22; }
}
@@ -7102,7 +7102,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy23FieldNumber = 23;
private bool hasDummy23;
- private int dummy23_ = 0;
+ private int dummy23_;
public bool HasDummy23 {
get { return hasDummy23; }
}
@@ -7112,7 +7112,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy24FieldNumber = 24;
private bool hasDummy24;
- private int dummy24_ = 0;
+ private int dummy24_;
public bool HasDummy24 {
get { return hasDummy24; }
}
@@ -7122,7 +7122,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy25FieldNumber = 25;
private bool hasDummy25;
- private int dummy25_ = 0;
+ private int dummy25_;
public bool HasDummy25 {
get { return hasDummy25; }
}
@@ -7132,7 +7132,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy26FieldNumber = 26;
private bool hasDummy26;
- private int dummy26_ = 0;
+ private int dummy26_;
public bool HasDummy26 {
get { return hasDummy26; }
}
@@ -7142,7 +7142,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy27FieldNumber = 27;
private bool hasDummy27;
- private int dummy27_ = 0;
+ private int dummy27_;
public bool HasDummy27 {
get { return hasDummy27; }
}
@@ -7152,7 +7152,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy28FieldNumber = 28;
private bool hasDummy28;
- private int dummy28_ = 0;
+ private int dummy28_;
public bool HasDummy28 {
get { return hasDummy28; }
}
@@ -7162,7 +7162,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy29FieldNumber = 29;
private bool hasDummy29;
- private int dummy29_ = 0;
+ private int dummy29_;
public bool HasDummy29 {
get { return hasDummy29; }
}
@@ -7172,7 +7172,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy30FieldNumber = 30;
private bool hasDummy30;
- private int dummy30_ = 0;
+ private int dummy30_;
public bool HasDummy30 {
get { return hasDummy30; }
}
@@ -7182,7 +7182,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy31FieldNumber = 31;
private bool hasDummy31;
- private int dummy31_ = 0;
+ private int dummy31_;
public bool HasDummy31 {
get { return hasDummy31; }
}
@@ -7192,7 +7192,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int Dummy32FieldNumber = 32;
private bool hasDummy32;
- private int dummy32_ = 0;
+ private int dummy32_;
public bool HasDummy32 {
get { return hasDummy32; }
}
@@ -7202,7 +7202,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int CFieldNumber = 33;
private bool hasC;
- private int c_ = 0;
+ private int c_;
public bool HasC {
get { return hasC; }
}
@@ -8458,7 +8458,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DummyFieldNumber = 3;
private bool hasDummy;
- private int dummy_ = 0;
+ private int dummy_;
public bool HasDummy {
get { return hasDummy; }
}
@@ -9677,7 +9677,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -9687,7 +9687,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int BbFieldNumber = 268435455;
private bool hasBb;
- private int bb_ = 0;
+ private int bb_;
public bool HasBb {
get { return hasBb; }
}
@@ -9967,7 +9967,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int IFieldNumber = 2;
private bool hasI;
- private int i_ = 0;
+ private int i_;
public bool HasI {
get { return hasI; }
}
@@ -10532,7 +10532,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalInt32FieldNumber = 2;
private bool hasOptionalInt32;
- private int optionalInt32_ = 0;
+ private int optionalInt32_;
public bool HasOptionalInt32 {
get { return hasOptionalInt32; }
}
@@ -10857,7 +10857,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -11096,7 +11096,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -11311,7 +11311,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int AFieldNumber = 1;
private bool hasA;
- private int a_ = 0;
+ private int a_;
public bool HasA {
get { return hasA; }
}
@@ -12268,7 +12268,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int PrimitiveFieldFieldNumber = 1;
private bool hasPrimitiveField;
- private int primitiveField_ = 0;
+ private int primitiveField_;
public bool HasPrimitiveField {
get { return hasPrimitiveField; }
}
@@ -12414,7 +12414,7 @@ namespace Google.ProtocolBuffers.TestProtos {
output.WriteString(2, field_names[10], StringField);
}
if (hasEnumField) {
- output.WriteEnum(3, field_names[1], (int) EnumField, EnumField.ToString());
+ output.WriteEnum(3, field_names[1], (int) EnumField, EnumField);
}
if (hasMessageField) {
output.WriteMessage(4, field_names[2], MessageField);
@@ -13124,7 +13124,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int MyIntFieldNumber = 1;
private bool hasMyInt;
- private long myInt_ = 0L;
+ private long myInt_;
public bool HasMyInt {
get { return hasMyInt; }
}
@@ -13134,7 +13134,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int MyFloatFieldNumber = 101;
private bool hasMyFloat;
- private float myFloat_ = 0F;
+ private float myFloat_;
public bool HasMyFloat {
get { return hasMyFloat; }
}
@@ -13504,7 +13504,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int ZeroFloatFieldNumber = 7;
private bool hasZeroFloat;
- private float zeroFloat_ = 0F;
+ private float zeroFloat_;
public bool HasZeroFloat {
get { return hasZeroFloat; }
}
@@ -17478,7 +17478,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DynamicFieldFieldNumber = 2100;
private bool hasDynamicField;
- private int dynamicField_ = 0;
+ private int dynamicField_;
public bool HasDynamicField {
get { return hasDynamicField; }
}
@@ -17693,7 +17693,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int ScalarExtensionFieldNumber = 2000;
private bool hasScalarExtension;
- private uint scalarExtension_ = 0;
+ private uint scalarExtension_;
public bool HasScalarExtension {
get { return hasScalarExtension; }
}
@@ -17780,10 +17780,10 @@ namespace Google.ProtocolBuffers.TestProtos {
output.WriteFixed32(2000, field_names[6], ScalarExtension);
}
if (hasEnumExtension) {
- output.WriteEnum(2001, field_names[2], (int) EnumExtension, EnumExtension.ToString());
+ output.WriteEnum(2001, field_names[2], (int) EnumExtension, EnumExtension);
}
if (hasDynamicEnumExtension) {
- output.WriteEnum(2002, field_names[0], (int) DynamicEnumExtension, DynamicEnumExtension.ToString());
+ output.WriteEnum(2002, field_names[0], (int) DynamicEnumExtension, DynamicEnumExtension);
}
if (hasMessageExtension) {
output.WriteMessage(2003, field_names[3], MessageExtension);
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
index aac362d1..e6887dc3 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
@@ -977,7 +977,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int NumberFieldNumber = 6;
private bool hasNumber;
- private long number_ = 0L;
+ private long number_;
public bool HasNumber {
get { return hasNumber; }
}
@@ -1021,7 +1021,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int ValidFieldNumber = 5;
private bool hasValid;
- private bool valid_ = false;
+ private bool valid_;
public bool HasValid {
get { return hasValid; }
}
@@ -1549,7 +1549,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int NumberFieldNumber = 1;
private bool hasNumber;
- private int number_ = 0;
+ private int number_;
public bool HasNumber {
get { return hasNumber; }
}