I have the following generic method, but VS gives me a compile error on that. (Operator \'??\' cannot be applied to operands of type \'T\' and \'T\')
public stat
Since T can be any type, there is no guarantee that T will have a static ?? operator or that the type T is nullable.
?? Operator (C# Reference)
The ?? operator is called the null-coalescing operator and is used to define a default value for nullable value types or reference types.