Hi,
How can I store generics in a generics TList holded by a non generic object ?
type
TXmlBuilder = class
type
TXmlAttribute<T>= class
Name: String;
Value: T;
end;
TXmlNode = class
Name: String;
Attributes: TList<TXmlAttribute<T>>;
Nodes: TList<TXmlNode>;
end;
...
end;
The compiler says T is not delcared in
Attributes: TList<TXmlAttribute<T>>;
-- Pierre Yager