Coffeehouse Post

Single Post Permalink

View Thread: C# trivia question
  • DeathBy​VisualStudio

    I work with guys I've shown things like ?? to but they still like writing statements like:

    if (isDirty != null && isDirty == true){
         Save()
    }
    

    Forget the adoption of ??; comparing a Boolean? They say that it's more readable. Ug...

    (Ok, a nullable Boolean is a bad example but you get what I mean.)