Hi,

There seems to be an issue with reflection when setting a nullable generic
property value.

    public class DummyJoe
    {
        public DateTime? Timmy
        {
            get;
            set;
        }
    }

            DummyJoe p = new DummyJoe();
            Type type = p.GetType();

            PropertyInfo propertyInfo = type.GetProperty( "Timmy" );

            propertyInfo.SetValue( p, DateTime.UtcNow, null );


the code above should set Timmy's value even though it's a nullable.



-- 
Gonçalo Oliveira
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to