[Mono-list] Troubling passing DateTime via embedded API

jonathan at mugginsoft.com jonathan at mugginsoft.com
Thu Jul 25 13:00:13 UTC 2013


Hi

I am trying to get and set a System.DateTime property via the embedded API.

I can retrieve a default DateTime from my cs model via the embedded API however I am having trouble with the setter.
I create a System.Data instance using the runtime API by calling the ticks constructor DateTime(long).
If I query the constructed C object's Ticks property it looks okay.
The setter invocation completes without issue.

However, when I requery the date property it always returns a value close to the reference date.

$1 = 0x0015f0b0 0001-01-01 00:00:03 +0000

I am missing something with regard to the nature of DateTime?

I am able to set other non DateTime properties without trouble.

Thanks

Jonathan








More information about the Mono-list mailing list