C# Ternary Conditional Operator ?:
The inline conditional operator, or ternary ( ?: ) operator, in C# is a useful shorthand for replacing an If… Else… statement. In this tutorial, we will learn how and when to use the conditional operator. In the previous lesson, we learned about using conditional statements to determine which block of code to execute. Consider … Read more