Skip to main content

SetPropertyHelper.Set<T>(ref T, T, Action<T>) Method

A helper method that sets the specified property’s field.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public static bool Set<T>(
    ref T storage,
    T value,
    Action<T> changedCallback
)

Parameters

Name Type Description
storage T

A reference to the property field that stores its value.

value T

A value that is set to the property.

changedCallback Action<T>

A callback that is invoked when the property value is set. The callback parameter is the old property’s value.

Type Parameters

Name Description
T

The property type.

Returns

Type Description
Boolean

true if the property is set; otherwise, false.

See Also