TimePickerSetPropertyT メソッド (T, T, Action, String) |
Checks if a property already matches a desired value. Sets the property and
notifies listeners only when necessary.
名前空間:
OnSite.ClickerAce.Plugin.Views
アセンブリ:
OnSite.ClickerAce.Plugin (in OnSite.ClickerAce.Plugin.dll) バージョン: 2.4.8635.19588
構文protected virtual bool SetProperty<T>(
ref T storage,
T value,
Action onChanged,
string propertyName = null
)
パラメーター
- storage
- 型: T
Reference to a property with both getter and setter. - value
- 型: T
Desired value for the property. - onChanged
- 型: SystemAction
Action that is called after the property value has been changed. - propertyName (Optional)
- 型: SystemString
Name of the property used to notify listeners. This
value is optional and can be provided automatically when invoked from compilers that
support CallerMemberName.
型パラメーター
- T
- Type of the property.
戻り値
型:
BooleanTrue if the value was changed, false if the existing value matched the
desired value.
関連項目