ObjectPath.Merge<T>(T, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.