Is there any fundamental difference between to using an action and a list of actions? Seeing that action is a delegate and therefore is a list itself. For instance:
List<Action> technicallyRedundant = new List<Action>();
technicallyRedundant.Add(() => { Console.WriteLine("Action 1"); });
technicallyRedundant.Add(() => { Console.WriteLine("Action 2"); });
Is this architecture more readable? Which would be recommended for use when exposing for an external library?
Action act = null;
act += () => { Console.WriteLine("Action 1"); }
act += () => { Console.WriteLine("Action 2"); }
GetInvocationList()
method. – Robert Harvey Mar 12 '18 at 2:55