Friday, March 11, 2005

Differences between Type.GetType() and typeof

Suzanne Cook has a good explanation for why GetType() only searches the current assembly in addition to mscorlib.dll when it tries to find a type.

http://blogs.msdn.com/suzcook/archive/2003/05/30/57158.aspx

You can use typeof() which will search all loaded assemblies within the current app domain.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?