[Mono-list] Embedded API: create System.Nullable<T>

Robert Jordan robertj at gmx.net
Thu Oct 24 09:31:40 UTC 2013


Jonathan,

On 23.10.2013 17:37, jonathan at mugginsoft.com wrote:
> What is the recommended way to create an instance of a nullable type, such as System.Nullable<int64>?
>
> I would prefer a method that used the embedded API as opposed to a C# helper method.
>

There is still no API for this, AFAIK, so you must resort to
using System.Type.MakeGenericType().

This is pretty much the same procedure as discussed here:

http://www.mail-archive.com/mono-list@lists.ximian.com/msg37275.html

Robert




More information about the Mono-list mailing list