Perhaps I've misunderstood, but if you have a reference to the assembly that contains the class, you can use the typeof operator at compile time. For example:
Type pointType = typeof(Point); If you need to get the type at runtime, and you don't have an instance on which to call GetType(), then you have to go the route of the fully-qualified name and use Type.GetType. Not sure about RuntimeType... -----Original Message----- From: Beaulieu, Paul [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 1:18 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] System.Type.GetType Hi All, I am trying to get the type for System.Drawing.Point as follows: System.Type.GetType( "System.Drawing.Point" ); This does not work giving back null. Adding the fully qualified assembly name causes it to work. Is there an easier way than using the Fully Qualified Assembly Name? If not what is the best way to do this? Assembly.CreateQualifiedName just seems to do a concatenation. It does not fill out the fully qualified name. Additionally, I have noticed that during runtime in the debugger the debugger shows some types as System.RuntimeType. This is not documented anywhere. What is it? Thanks for your help, Paul Beaulieu You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.