[Mono-list] Embedded API: create System.Nullable<T>
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Wed Oct 30 13:57:36 UTC 2013
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of jonathan at mugginsoft.com
>
> 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.
Because this seems so simple, I wonder if I'm misunderstanding the question in some way... You can just use the question mark.
int? foo = null;
More information about the Mono-list
mailing list