Answers for "ternary condition in c# version 7"

C#
0

c# ternary operator

static void Sample(string input)
{
    string result = input == null ? "default" : input;
    Console.WriteLine($"Result: {result}");
}
Posted by: Guest on July-17-2021

Code answers related to "ternary condition in c# version 7"

C# Answers by Framework

Browse Popular Code Answers by Language