I have the following enum ( pseudo code )
enum RunSequence : int
{
ABCD = 1 ,
BCDA = 2 ,
DABC = 3 ,
....
}
You get the idea ... Now if each letter represents some 4 lines of code , what would be the smartest way of building the logic for running those 16 lines of code in the desired sequence according to the RunSequence passed
Am I totally lost ... should this be achieved via totally different approach ? I d rather not use goto but some OO approach ... design pattern