Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface IExecutor<T> where T : Command
- {
- void Execute(T command);
- }
- IEnumerable<object> x = new List<string>();
- interface IExecutor<in T> where T : Command
- {
- void Execute(T command);
- }
- IExecutor<Command> baseExecutor = ....;
- IExecutor<SpecialisedCommand> executor = baseExecutor;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement