public static void Main()
Console.WriteLine(IsNullable(num1));
Console.WriteLine(IsNullable(num2));
static bool IsNullable<T>(T obj)
if (obj == null) return true;
if (!type.IsValueType) return true;
if (Nullable.GetUnderlyingType(type) != null) return true;