Die einzige Möglichkeit die ich sehe ist sowas:
Delphi-Quellcode:
IStreamable = interface
procedure LoadFromStream(Stream: TStream);
procedure SaveToStream(Stream: TStream);
end;
TStream<T: IStreamable> = class(TCustomMemoryStream)
// ...
end;
Aber das hilft auch nicht soo viel.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."