The issue is that System.Drawing.Point is not guaranteed to be unique as a name. In fact, you could make your own class with this name. The only way the runtime knows what you're talking about is to specify an assembly.
Now, if you want to get back a type object that represents some class without having to *write down* the assembly name, rely on the compiler by using typeof(System.Drawing.Point). > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]] On Behalf Of > Beaulieu, Paul > Sent: Thursday, June 06, 2002 4: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.