Click or drag to resize
NotifyPropertyChangedSetValueT Method
Sets field to newValue and calls OnPropertyChanged(PropertyChangedEventArgs) if their values were not equal.

Namespace: Lawo.ComponentModel
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
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: Boolean
See Also