Lines Matching defs:source
6 // Redistribution and use in source and binary forms, with or without
10 // * Redistributions of source code must retain the above copyright
229 /// Merges all fields specified by this FieldMaskTree from <paramref name="source"/> to <paramref name="destination"/>.
231 public void Merge(IMessage source, IMessage destination, FieldMask.MergeOptions options)
233 if (source.Descriptor != destination.Descriptor)
243 Merge(root, "", source, destination, options);
247 /// Merges all fields specified by a sub-tree from <paramref name="source"/> to <paramref name="destination"/>.
252 IMessage source,
256 if (source.Descriptor != destination.Descriptor)
258 throw new InvalidProtocolBufferException($"source ({source.Descriptor}) and destination ({destination.Descriptor}) descriptor must be equal");
261 var descriptor = source.Descriptor;
280 var sourceField = field.Accessor.GetValue(source);
285 // If the message field is not present in both source and destination, skip recursing
309 var sourceField = (IList)field.Accessor.GetValue(source);
318 var sourceField = field.Accessor.GetValue(source);