Coffeehouse Post

Single Post Permalink

View Thread: C# trivia question
  • User profile image
    JoshRoss

    // you wouldn't want to eval twice.
    var test = SomeMethod();
    var someval = test != null ? test : String.Empty;
    // or would you?
    

    -Josh