J
jonfroehlich
When running the following code in the SmartPhone 2005 emulator, I get
a NotSupportedException at the third line.
Type type1 = Type.GetType("System.DateTime");
Type type2 = Type.GetType("System.DateTime",true);
Type type3 = Type.GetType("System.DateTime",true,true);
I am using C# for .NET CF 2.0. The exact exception is:
System.NotSupportedException was unhandled
Message="NotSupportedException"
StackTrace:
at System.RuntimeType.GetTypeImpl()
at System.Type.GetType()
at PhoneTest.Form1.menuItem1_Click()
at System.Windows.Forms.MenuItem.OnClick()
at System.Windows.Forms.Menu.ProcessMnuProc()
at System.Windows.Forms.Form.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at PhoneTest.Program.Main()
Note that the Microsoft Visual Studio 2005 documentation states that
all four of the Type.GetType methods are "supported by the .NET Compact
Framework." Anyone know what gives?
Thanks,
j
a NotSupportedException at the third line.
Type type1 = Type.GetType("System.DateTime");
Type type2 = Type.GetType("System.DateTime",true);
Type type3 = Type.GetType("System.DateTime",true,true);
I am using C# for .NET CF 2.0. The exact exception is:
System.NotSupportedException was unhandled
Message="NotSupportedException"
StackTrace:
at System.RuntimeType.GetTypeImpl()
at System.Type.GetType()
at PhoneTest.Form1.menuItem1_Click()
at System.Windows.Forms.MenuItem.OnClick()
at System.Windows.Forms.Menu.ProcessMnuProc()
at System.Windows.Forms.Form.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at PhoneTest.Program.Main()
Note that the Microsoft Visual Studio 2005 documentation states that
all four of the Type.GetType methods are "supported by the .NET Compact
Framework." Anyone know what gives?
Thanks,
j