W
wdudek
ok, a little background first. I have the following class
public class LineItemColleciton : IList<LineItem>
///implements the IList as well as other business logic
The class LineItem implements the interface ILineItem
public class LineItem : ILineItem
Then I have the interface IOrder
public Interface IOrder
IList<ILineItem> LineItems
is there a way for my class Order to "gracefully" implement this
public class Order
public LineItemColleciton LineItems { get; set;}
I'm doing this in 2.0.
My solution was to refactor the original property with a differnt name, but
was hoping I could somehow cast it?
public class LineItemColleciton : IList<LineItem>
///implements the IList as well as other business logic
The class LineItem implements the interface ILineItem
public class LineItem : ILineItem
Then I have the interface IOrder
public Interface IOrder
IList<ILineItem> LineItems
is there a way for my class Order to "gracefully" implement this
public class Order
public LineItemColleciton LineItems { get; set;}
I'm doing this in 2.0.
My solution was to refactor the original property with a differnt name, but
was hoping I could somehow cast it?