[Lazarus] Is it possible to detect type in a generic class
xrfang
xrfang at gmail.com
Fri Dec 28 00:58:18 CET 2012
Hi,
Suppose I have a generic class like this:
type
TSerie = generic class
public
procedure Append(value: T);
end
then, in the Append procedure can I do something like:
case typeof(T) of
integer: // do something with integer
string: // do someting with string
... ...
end;
Thanks!
Shannon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121228/dd08cf25/attachment-0002.html>
More information about the Lazarus
mailing list