Thank you Preet and Joseph,

I was trying to avoid using Type, I wanted to see if there is
something closer to FormType rather than the generic Type. Same way
that that people would avoid using "object" and instead use some type
of constraint as is used in genereics.


On 30 April 2010 09:48, Joseph Clark <[email protected]> wrote:
> Use System.Type :-)
>
>
> On Fri, Apr 30, 2010 at 9:45 AM, Arjang Assadi <[email protected]>
> 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] ?  :)
>
>

Reply via email to