Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. interface IExecutor<T> where T : Command
  2. {
  3. void Execute(T command);
  4. }
  5.  
  6. IEnumerable<object> x = new List<string>();
  7.  
  8. interface IExecutor<in T> where T : Command
  9. {
  10. void Execute(T command);
  11. }
  12.  
  13. IExecutor<Command> baseExecutor = ....;
  14. IExecutor<SpecialisedCommand> executor = baseExecutor;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement