Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A<T>
- {
- public int Id { get; set; }
- public List<T> Children { get; set; }
- public A()
- {
- Children = new List<T>();
- }
- }
- public class B : A<B>
- {
- public B()
- {
- Children = new List<B>();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement