Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# null coalescing operator

static void Sample(string input)
{
    string result = input ?? "default";
    Console.WriteLine($"Result: {result}");
}
 
PREVIOUS NEXT
Tagged: #null #coalescing #operator
ADD COMMENT
Topic
Name
6+4 =