I have a grid class (will remove most of the properties to keep it short)
public class WinGrid
{
public List Rows
{
...
}
}
public class WinGridRow
{
public WinGridRow(WinGrid parent)
{
// Many properties and methods
}
}
Basically I want to inherit the Grid class but the Rows property returns a list of GridRow. The GridRow class does what I what to do but I want to inherit it and add more specific methods and properties. I what to know the best approach and to go about it. Generics? Factory?
Any help will be appreciated.
Thanks

Guest UserRank #816 · 2.8K reputationPosted Oct 24, 2019, 1:06 AM EDT
Cuong Me8 reputationPosted Oct 24, 2019, 1:46 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Oct 24, 2019, 2:02 AM EDT
Cuong Me8 reputationPosted Oct 24, 2019, 2:11 AM EDT
Cuong Me8 reputationPosted Oct 24, 2019, 2:16 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Oct 24, 2019, 2:26 AM EDT