C#C
C#3y ago
Ownix

❔ Is there a pattern for having a single collection of different object types?

This is my sample code https://dotnetfiddle.net/ffV3vY I have a WorkflowCommand a ScheduledWorkflowCommanddepending on their type they are executed in different ways. I would like to have a collection of them I can pass around and enumerate.
Help Creating List of two types | Test your C# code online with .NET Fiddle code editor.
Was this page helpful?