[]
Compares two values of property and raises an PropertyChanged event if they are different.
protected bool SetField<T>(ref T field, T value, string propertyName = null)
| Type | Name | Description |
|---|---|---|
| T | field | The previous value of property. |
| T | value | The new value of property. |
| string | propertyName | The name of property. |
| Type | Description |
|---|---|
| bool | true - if values are different. |
| Name | Description |
|---|---|
| T | Type of property. |