aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
diff options
context:
space:
mode:
authorSydney Acksman <ObsidianMinor@users.noreply.github.com>2018-04-19 13:57:31 -0500
committerJie Luo <anandolee@gmail.com>2018-04-19 11:57:31 -0700
commit4ca46ede5cc838fb047bd4f86d2294db788567ad (patch)
treead811ccbaec9a67466c7caff9db18c153cabd161 /csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
parent0dc4d75da7bde8944bbefffae15931ea2eaf0759 (diff)
downloadprotobuf-4ca46ede5cc838fb047bd4f86d2294db788567ad.tar.gz
protobuf-4ca46ede5cc838fb047bd4f86d2294db788567ad.tar.bz2
protobuf-4ca46ede5cc838fb047bd4f86d2294db788567ad.zip
Write messages to backing field in generated C# cloning code (#4440)
* Edited MessageFieldGenerator to clone to backing field instead of property * Generated C# proto code
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
index cb1bc920..51715a0c 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
@@ -642,7 +642,7 @@ namespace Google.Protobuf.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TestMapSubmessage(TestMapSubmessage other) : this() {
- TestMap = other.testMap_ != null ? other.TestMap.Clone() : null;
+ testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}