ObjectPath.Merge<T>(T, T) Method

Definition

Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object.

public static T Merge<T> (T startObject, T overlayObject) where T : class;
static member Merge : 'T * 'T -> 'T (requires 'T : null)
Public Shared Function Merge(Of T As Class) (startObject As T, overlayObject As T) As T

Type Parameters

T

The object type.

Parameters

startObject
T

Intial object.

overlayObject
T

Overlay object.

Returns

T

merged object.

Applies to