private static ActionProcessor GetProcessor(OnRemoveAction action) { return(action switch { OnRemoveAction.Clear => clearActionProcessor, OnRemoveAction.Cascade => cascadeActionProcessor, OnRemoveAction.Deny => denyActionProcessor, _ => noneActionProcessor, });
private static ActionProcessor GetProcessor(OnRemoveAction action) { switch (action) { case OnRemoveAction.Clear: return(clearActionProcessor); case OnRemoveAction.Cascade: return(cascadeActionProcessor); case OnRemoveAction.Deny: return(denyActionProcessor); default: return(noneActionProcessor); } }