Sets the value of a field, raising the PropertyChanged event if required.
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.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 be set.
- value
- Type: T
The value to which to set the field.
- propertyName
- Type: System..::.String
The name of the property for which to raise a change notification.
Type Parameters
- T
- The data type of the field.
Remarks
Derived types can use this method to implement property setters.