void UpdateObjectState()
{
bool conditionA = ...
bool conditionB = ...
bool conditionC = ...
myObject.SetDefaultState();
// One of the Logic functions gets called here based on some conditions
void LogicA() ...
void LogicB() ...
void LogicC()
{
if (conditionA) myObject.ChangeStateA();
else if (conditionB) /*no op*/; //
Подробнее здесь: [url]https://stackoverflow.com/questions/79852714/how-should-i-avoid-cs0642-possible-mistaken-empty-statement-in-this-code-segm[/url]