Open sandboxFocus

Method ApplyChangesSafe

ApplyChangesSafe<T>(T?, T?, in ApplyChangesContext)

Invokes ApplyChanges(object, in ApplyChangesContext) in a type- and nullable-safe way.

Declaration
public static T? ApplyChangesSafe<T>(this T? baseOptions, T? overrideOptions, in ApplyChangesContext context) where T : class, IIncrementalObject
Parameters
Type Name Description
T baseOptions

The base options object, or null.

T overrideOptions

The override options object, or null.

ApplyChangesContext context

The context for applying changes.

Returns
Type Description
T

The result of applying overrideOptions to baseOptions, handling null values.

Type Parameters
Name Description
T

The type of incremental object.