Coffeehouse Post

Single Post Permalink

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

    How would you rewrite this line of code without using the ?? operator and achieve functional equivalence (in terms of side effects)?

    var someval = SomeMethod() ?? String.Empty;