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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -