M
marco_segurini
Hi,
I am wondering why 'Type.GetType' has a different behaviour if called
with a user defined struct or a .NET struct (i.e.
System.Drawing.Point).
Example:
using System;
namespace nsGetType
{
struct MyStruct
{
}
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Type is [{0}]",
Type.GetType("System.Drawing.Point"));
Console.WriteLine("Type is [{0}]",
Type.GetType("nsGetType.MyStruct"));
}
}
}
Output:
Type is []
Type is [nsGetType.MyStruct]
Thanks for any help.
Marco.
I am wondering why 'Type.GetType' has a different behaviour if called
with a user defined struct or a .NET struct (i.e.
System.Drawing.Point).
Example:
using System;
namespace nsGetType
{
struct MyStruct
{
}
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Type is [{0}]",
Type.GetType("System.Drawing.Point"));
Console.WriteLine("Type is [{0}]",
Type.GetType("nsGetType.MyStruct"));
}
}
}
Output:
Type is []
Type is [nsGetType.MyStruct]
Thanks for any help.
Marco.