say you have to interpret a sting of command arguments like AABBCDEEFF… and the idea is that each character represents a command for which you have to take some actions on the class, the ugly solution is to write a big switch-case but i dont want to use that , can anybody suggest a more elegant solution ??
Share
For C#, In the more complex case a solution can be to implement and interface, or add attributes and use reflection to call the command or method.
OK, as an example i created some C# code
You can limit the list of initial assemblies scanned, but as mentioned, this should only load on startup.
Hope this helps.