A
Andrus
public static bool Empty(object? obj) {
return false;
}
public static bool Empty(string? obj) {
return false;
}
causes error
Error 1 The type 'object' must be a non-nullable value type in order to use
it as parameter 'T' in the generic type or method 'System.Nullable<T>'
How to use nullable objects and strings ?
return false;
}
public static bool Empty(string? obj) {
return false;
}
causes error
Error 1 The type 'object' must be a non-nullable value type in order to use
it as parameter 'T' in the generic type or method 'System.Nullable<T>'
How to use nullable objects and strings ?