ObjectPath.Assign 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.
Overloads
Assign(Object, Object, Type) |
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object. |
Assign<T>(Object, Object) |
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object. |
Assign(Object, Object, Type)
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object.
public static object Assign (object startObject, object overlayObject, Type type);
static member Assign : obj * obj * Type -> obj
Public Shared Function Assign (startObject As Object, overlayObject As Object, type As Type) As Object
Parameters
- startObject
- Object
intial object of any type.
- overlayObject
- Object
overlay object of any type.
- type
- Type
type to output.
Returns
merged object.
Applies to
Assign<T>(Object, Object)
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object.
public static T Assign<T> (object startObject, object overlayObject) where T : class;
static member Assign : obj * obj -> 'T (requires 'T : null)
Public Shared Function Assign(Of T As Class) (startObject As Object, overlayObject As Object) As T
Type Parameters
- T
The target type.
Parameters
- startObject
- Object
intial object of any type.
- overlayObject
- Object
overlay object of any type.
Returns
merged object.