aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/AddressBook
diff options
context:
space:
mode:
authorGravatar Sydney Acksman <ObsidianMinor@users.noreply.github.com>2018-04-19 13:57:31 -0500
committerGravatar Jie Luo <anandolee@gmail.com>2018-04-19 11:57:31 -0700
commit4ca46ede5cc838fb047bd4f86d2294db788567ad (patch)
treead811ccbaec9a67466c7caff9db18c153cabd161 /csharp/src/AddressBook
parent0dc4d75da7bde8944bbefffae15931ea2eaf0759 (diff)
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/AddressBook')
-rw-r--r--csharp/src/AddressBook/Addressbook.cs2
1 files changed, 1 insertions, 1 deletions
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);
}