aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.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/UnittestIssues.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/UnittestIssues.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
index 01a86f8f..819fc201 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
@@ -704,7 +704,7 @@ namespace UnitTest.Issues.TestProtos {
public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
primitiveValue_ = other.primitiveValue_;
primitiveArray_ = other.primitiveArray_.Clone();
- MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null;
+ messageValue_ = other.messageValue_ != null ? other.messageValue_.Clone() : null;
messageArray_ = other.messageArray_.Clone();
enumValue_ = other.enumValue_;
enumArray_ = other.enumArray_.Clone();