C# Tips

Today's C# Quiz

Quiz

In the following C# example, variable a is string. Find one that either is wrong or returns a different result.

a = a ?? "";
a = a == null ? "" : a;
a = (a is null) ? "" : a;
if (a == null) a = "";

Tip

Answer