xtd 0.2.0
Loading...
Searching...
No Matches

◆ on_value_changed()

void xtd::diagnostics::boolean_switch::on_value_changed ( )
overrideprotectedvirtual

Determines whether the new value of the Value property can be parsed as a Boolean value.

Remarks
The xtd::diagnostics::boolean_switch::on_value_changed method determines whether the new value is a valid string representation of a boolean value ("false" or "true"). If so, the method sets the xtd::diagnostics::boolean_switch::switch_setting property to 0 or 1. Otherwise, the base method is called, which converts the string value to an integer value, which is then used to set the xtd::diagnostics::boolean_switch::switch_setting property.

Reimplemented from xtd::diagnostics::switch_base.