From 4ca46ede5cc838fb047bd4f86d2294db788567ad Mon Sep 17 00:00:00 2001 From: Sydney Acksman Date: Thu, 19 Apr 2018 13:57:31 -0500 Subject: 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 --- csharp/src/AddressBook/Addressbook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csharp/src/AddressBook') diff --git a/csharp/src/AddressBook/Addressbook.cs b/csharp/src/AddressBook/Addressbook.cs index ceb93699..21a8ce02 100644 --- a/csharp/src/AddressBook/Addressbook.cs +++ b/csharp/src/AddressBook/Addressbook.cs @@ -78,7 +78,7 @@ namespace Google.Protobuf.Examples.AddressBook { id_ = other.id_; email_ = other.email_; phones_ = other.phones_.Clone(); - LastUpdated = other.lastUpdated_ != null ? other.LastUpdated.Clone() : null; + lastUpdated_ = other.lastUpdated_ != null ? other.lastUpdated_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } -- cgit v1.2.3