Given a type parameter which is a Nullable<>
, how can I create an instance of that type which has HasValue
= false?
In other words, complete this code:
public static Nullable<T> Create<T>() where T : struct
{
//Instantatie a Nullable<T> with reflection whose HasValue = false, and return it
}