Darren Carter wrote:I want a generic interface called ISectionWriter which will write any of the sections to the document
But I need two implementations of ISectionWriter, one for writing static content and one for dynamic content
Darren Carter wrote:Could you advise the best way to achieve the above? Could I have a class where I pass in the section and depending on the supertype, it calls the required write mehod?
Darren Carter wrote:Are you suggesting that while Ill loop through my List of Sections I lookup the the superclass of the section (then calling the correct implementation depending on its type?
Darren Carter wrote:Thank you very much! - This is very imfomative and has put me back on the right track.
Its nice to know that there is help out there!