Coding not good pieces

  • [C#] using fancy if else but ignored why to use

    • Intuitive

string temp = XXX
if(temp == "string1") {
  temp = "string2"
}
    • Not

string temp = XXX
temp = temp == "string1" ? "string2" : temp

Be the first to comment

Leave a Reply

Your email address will not be published.


*