This question already has an answer here:
Can some one explain what does this piece of code is doing.
bool? Following;
If (Following ?? false)
// do something.
My first though is that it means, do something if "Following" is true or false. If so, why not just check if not Null or has value? And that is why I'm confused.
EDIT: I know what the ?? Means. I just never saw it in a if statement.
Aucun commentaire:
Enregistrer un commentaire