Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Entity<T> { }
- public class MyEntity : Entity<object> { }
- public class Service<T> where T : Entity<T> { }
- public class Test
- {
- private Service<MyEntity> _service; //Not possible because MyEntity has to be convertible to Entity<MyEntity>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement