C# 7.3. I'm trying to have a method take a Type parameter and return its corresponding nullable. Like:
This shows the error: 't?' is a type, which is not valid in the given context.
That's precisely my intention: to return the
Also tried
C#:
public static System.Type GetTypeNullable(System.Type t)
{
return System.Nullable<t>;
}
This shows the error: 't?' is a type, which is not valid in the given context.
That's precisely my intention: to return the
t?
.Also tried
C#:
return typeof(System.Nullable<t>);