Good evening,
Problem : I have a class with various methods in it. I have a bulk of text that i would like to perform certain actions on, however these actions must take the form of a sequence or an order.
E.g.
1. Extract all instances <IMG> then
2. Extract all <TABLE then
3. Extract all <SCRIPT> then
4. Extract all instances of "XXX" then
I have methods for all of these actions, however how would i go about recording the order in which a user decides to run these actions and then execute the methods afterwards in the selected order. I am leaning towards an array of delegates.
i.e. When a user selects "Extracts all instances <IMG>" a delegate is added to a "process" array of delegates with the delegate name. Can someone confirm that this would work or suggest an alternative method.
Many thanks
Martin Tuncaydin

An array of delegates[]
ParthP
Sure, that should work.