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

◆ on_value_changed()

virtual void xtd::diagnostics::switch_base::on_value_changed ( )
protectedvirtual

Invoked when the value property is changed.

Remarks
The default implementation parses the new value of the value property to an integer value which it uses to set the switch_setting property.
Not to Inheritors
You should override this method and use a conversion that sets the appropriate switch_setting value for your switch.

Reimplemented in xtd::diagnostics::boolean_switch, xtd::diagnostics::source_switch, and xtd::diagnostics::trace_switch.