-
[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
[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
Copyright © 2023 | WordPress Theme by MH Themes
Leave a Reply