I recently found that we can use ?? operator to check nulls. Please check the below code samples:
var res = data ?? new data();
This is
I think it's just a habit from other languages. AFAIK, ?? operator is not used in any other language.