MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / CompareValues

Method CompareValues

Xaml/Controls/SwitchPresenter.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 bool SwitchPresenter::CompareValues(const IInspectable &compare, const IInspectable &value)
109 {
110 if (compare == value)
111 {
112 return true;
113 }
114
115 if (!compare || !value)
116 {
117 return false;
118 }
119
120 return ValueToString(compare) == ValueToString(value);
121 }
122
123 hstring SwitchPresenter::ValueToString(const IInspectable &value)
124 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected