NotifyPropertyChangedSetValueT Method | |
Namespace: Lawo.ComponentModelAssembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax protected bool SetValue<T>(
ref T field,
T newValue,
string propertyName = null
)
Parameters
- field
- Type: T
The field to set. - newValue
- Type: T
The new value to set. - propertyName (Optional)
- Type: SystemString
The name of the property from which this method is called. Due to the use of the
CallerMemberNameAttribute an argument for this parameter only needs to be specified if this
method is not directly called from a property.
Type Parameters
- T
- The type of field and newValue.
Return Value
Type:
BooleanSee Also