System.Web.UI.WebControls.UI.TableHeaderCell
derives from
System.Web.UI.WebControls.UI.TableCell
So a method with the signature foo(TableCell tc){}
Will accept instances of TableHeaderCell.
However if i create two new classes and derive one from TableCell
and the other from TableHeaderCell
then my new TableHeaderCell class will obviously not be able to cast into my new TableCell class as they are not directly related.
Is there anyway to get around this? Im guessing no.