Пример #1
0
 private static ActionProcessor GetProcessor(OnRemoveAction action)
 {
     return(action switch {
         OnRemoveAction.Clear => clearActionProcessor,
         OnRemoveAction.Cascade => cascadeActionProcessor,
         OnRemoveAction.Deny => denyActionProcessor,
         _ => noneActionProcessor,
     });
Пример #2
0
        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);
            }
        }