Sets the specified field, raising the PropertyChanged event if required.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
protected void Set<T>(
	ref T field,
	T value,
	string propertyName
)
Visual Basic (Declaration)
Protected Sub Set(Of T) ( _
	ByRef field As T, _
	value As T, _
	propertyName As String _
)

Parameters

field
Type: T %
The field to set.
value
Type: T
The value to which to set the field.
propertyName
Type: System..::.String
The name of the property for the PropertyChanged event.

Type Parameters

T
The type of field.

See Also