diff options
author | Sydney Acksman <ObsidianMinor@users.noreply.github.com> | 2018-04-19 13:57:31 -0500 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2018-04-19 11:57:31 -0700 |
commit | 4ca46ede5cc838fb047bd4f86d2294db788567ad (patch) | |
tree | ad811ccbaec9a67466c7caff9db18c153cabd161 /csharp/src/Google.Protobuf/WellKnownTypes/Api.cs | |
parent | 0dc4d75da7bde8944bbefffae15931ea2eaf0759 (diff) | |
download | protobuf-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/WellKnownTypes/Api.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/WellKnownTypes/Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs index 4db1f633..e4a4a365 100644 --- a/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs +++ b/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs @@ -93,7 +93,7 @@ namespace Google.Protobuf.WellKnownTypes { methods_ = other.methods_.Clone(); options_ = other.options_.Clone(); version_ = other.version_; - SourceContext = other.sourceContext_ != null ? other.SourceContext.Clone() : null; + sourceContext_ = other.sourceContext_ != null ? other.sourceContext_.Clone() : null; mixins_ = other.mixins_.Clone(); syntax_ = other.syntax_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |