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

Namespace: Mindscape.PhoneElements
Assembly: Mindscape.PhoneElements (in Mindscape.PhoneElements.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected void Set<T>(
	ref T field,
	T value,
	string propertyName
)
Visual Basic
Protected Sub Set(Of T) ( _
	ByRef field As T, _
	value As T, _
	propertyName As String _
)
Visual C++
protected:
generic<typename T>
void Set(
	T% field, 
	T value, 
	String^ propertyName
)

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