[Mono-bugs] [Bug 76406][Nor] New - System.Reflection.PropertyInfo.SetValue () breaks with nullable types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 11 08:44:44 EDT 2005

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 axel at banzais.org.


--- shadow/76406	2005-10-11 08:44:44.000000000 -0400
+++ shadow/76406.tmp.24835	2005-10-11 08:44:44.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 76406
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: gmcs, mono (also tried 1.1.9)
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: axel at banzais.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: System.Reflection.PropertyInfo.SetValue () breaks with nullable types
+Description of Problem:
+I get weird behavior when trying to assign to a nullable object property
+via system.reflection. The source builds fine, but at runtime I get the
+following error:
+** ERROR **: type 0x15 not handled in ves_icall_InternalInvoke
+That does not look like an exception, but more like a GLib failed assertion
+at some lower level... 
+This seems to happen in MS C# compiler as well, I found the following
+However, the solutions in those pages imply use Nullable.Wrap () and
+Nullabe.Unwrap (), AFAIK those do not exist in mono svn (checked oct 11 2005).

More information about the mono-bugs mailing list