MetalamaAPI documentationAspect APIMetalama.​Framework.​OptionsIIncremental­ObjectApply­Changes
Open sandboxFocus

IIncrementalObject.ApplyChanges Method

ApplyChanges(Object, in ApplyChangesContext)

Returns an object where the properties of the current objects are overwritten or complemented by the properties of another given object, except if these properties are not set.

Declaration
object ApplyChanges(object changes, in ApplyChangesContext context)
Parameters
Type Name Description
System.Object changes

The object being applied on the current object, which property values, if they are set, take precedence over the ones of the current object.

ApplyChangesContext context

Information about the context of the current operation.

Returns
Type Description
System.Object

A new immutable instance of the same class.