Method Create
Create<T>(T)
Creates a new instance of the UpdateWrapper class (this overload is used when the update modifier is a replacement document).
public static UpdateWrapper Create<T>(T update)
Parameters
updateTThe wrapped object.
Returns
- UpdateWrapper
A new instance of UpdateWrapper or null.
Type Parameters
TThe nominal type of the wrapped object.
Create(Type, object)
Creates a new instance of the UpdateWrapper class.
public static UpdateWrapper Create(Type nominalType, object update)
Parameters
Returns
- UpdateWrapper
A new instance of UpdateWrapper or null.