MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / MergeFrom

Method MergeFrom

cli/managed-mode/gen/proto/csharp/Weather.cs:224–237  ·  view source on GitHub ↗
(Location other)

Source from the content-addressed store, hash-verified

222 }
223
224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
226 public void MergeFrom(Location other) {
227 if (other == null) {
228 return;
229 }
230 if (other.Latitude != 0F) {
231 Latitude = other.Latitude;
232 }
233 if (other.Longitude != 0F) {
234 Longitude = other.Longitude;
235 }
236 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
237 }
238
239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]

Callers

nothing calls this directly

Calls 1

MergeFromMethod · 0.45

Tested by

no test coverage detected