Using generic types to represent a partially loaded tree of data
How do I represent a partially loaded tree of objects using C# generics? public class Address { public string Line1 { get; set; } public string City { get; set; } } public class Customer { public string Name { get; set; } public Address Address { get; set; } public ICollection<Order> Orders { get; set; } } public class Order { public int OrderNumber { get; set; } public ICollection<Line> Lines { get; set; } } public class Line { public int Qty { get; set; } public string Product { get; set; } } The classes reference each other but sometimes these references will not be loaded and the fields wi
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.