[Mono-bugs] [Bug 28346][Wis] New - NullReferenceException in System.Type.GetTypeCode() for a DateTime and Decimal

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Jul 2002 10:47:59 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vberlin@inetsoftware.de.

http://bugzilla.ximian.com/show_bug.cgi?id=28346

--- shadow/28346	Tue Jul 30 06:47:59 2002
+++ shadow/28346.tmp.29280	Tue Jul 30 06:47:59 2002
@@ -0,0 +1,30 @@
+Bug#: 28346
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Windows 2000 Server
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: VBerlin@inetsoftware.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException in System.Type.GetTypeCode()  for a DateTime and Decimal
+
+The follow sequence produce a NullReferenceException 
+
+DateTime dt = DateTime.Now;
+Console.WriteLine(dt);
+Console.WriteLine(dt.GetType());
+Console.WriteLine(System.Type.GetTypeCode(dt.GetType())); // 
+System.NullReferenceException
+
+
+Equals it the problem for Decimal. With all other data types is it working.
+
+Volker Berlin