You can, but you have to add another constraint: the struct
constraint.
public static void DoSomething<T>(T? defaultValue) where T : struct, Enum
{
}
You can, but you have to add another constraint: the struct
constraint.
public static void DoSomething<T>(T? defaultValue) where T : struct, Enum
{
}