Howdy. Quick question - is it possible to pass a variable to a treesharp action?
I'd like to use 4 or 5 decorators and a single action (keep code a bit cleaner).
kind of like:
new checkAction1(new doAction(1)),
new checkAction2(new doAction(2)),
new checkAction3(new doAction(3)),
checkAction1 : Decorator { }
checkAction2 : Decorator { }
CheckAction3 : Decorator { }
doAction : Action { }
I've tried everything I can think of... is it even possible or am I on a fools errand here?
Thanks!
I'd like to use 4 or 5 decorators and a single action (keep code a bit cleaner).
kind of like:
new checkAction1(new doAction(1)),
new checkAction2(new doAction(2)),
new checkAction3(new doAction(3)),
checkAction1 : Decorator { }
checkAction2 : Decorator { }
CheckAction3 : Decorator { }
doAction : Action { }
I've tried everything I can think of... is it even possible or am I on a fools errand here?
Thanks!