delphi - Can I annotate class of some object as type? -
i want create a
tdictionary<string, class of tcontrol>
that - can see - holds pairs of strings , references tcontrol class definition able call create method on dictionary elements @ runtime.
can i?
the syntax need follows:
type tcontrolclass = class of tcontrol;
and can declare dictionary:
var dict: tdictionary<string, tcontrolclass>;
Comments
Post a Comment