conrad2010
asked on
C# convert to ternary expression
how to convert to ternary expression?
if (SortOrder == "ASC")
{
SortOrder = "ASC";
}
else
{
SortOrder = "DESC";
}
if (SortOrder == "ASC")
{
SortOrder = "ASC";
}
else
{
SortOrder = "DESC";
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.