Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Connection { }
- class Command { }
- class SqlConnection { }
- class SqlCommand {
- public SqlCommand(SqlConnection c) { }
- }
- class Repo<TCommand> where TCommand: Command, new(Connection)
- {
- public X Execute<X>(Connection c) {
- var command = new TCommand(c);
- …
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment