if you need to limit the range of types passed in I tend to use generics with a constraint and typeof()
i.e. void RegisterForm<T>() where T : Form { var type = typeof(T); // ... } It also really depends on what you are using the type for I guess. On Fri, Apr 30, 2010 at 7:45 AM, Arjang Assadi <arjang.ass...@gmail.com>wrote: > I need to have method with a a signature looking like this > > RegisterForm( typeof(Form) formType) > > where the forn type is actually a class refrence ( Delphi parlance, > what are class refrences are called in C#?). > > so I would be able to call it like this : > > RegiterForm( typeOf(Form1) ); > > Any further references sugeestions links? > > Thank you > > Regards > > if [OT] is short for [Off Topic], what is the short for [On Topic] ? :) > -- Michael M. Minutillo Indiscriminate Information Sponge Blog: http://wolfbyte-net.blogspot.com