Ok, makes sense... But the question of Frans then remains unanswered.
Without measuring, I would also have guessed that the generic version
would be faster.

Sébastien
www.sebastienlorion.com

On 2/28/07, Barry Kelly <[EMAIL PROTECTED]> wrote:
Barry Kelly <[EMAIL PROTECTED]> wrote:

> Your results appear to be anomalous because typeof(T) where T is a
> non-public type invokes more security checking. I get the following
> results:

Oops: I meant Activator.CreateInstance(typeof(T)) invokes more checking,
not typeof(T), where T is non-public.

-- Barry

--
http://barrkel.blogspot.com/

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com



--
Sébastien
www.sebastienlorion.com

Reply via email to