Hi,
try attaching a constraint to your generic class:
public class List<T> : CollectionBase where T: MyBaseClass { ... }
... where MyBaseClass is of course your base class, which implements GetOutputXml() method.
SideNote: you could use the StringBuilder class for concatenating your outputXml string to increase the performance...
Andrej
|