The ternary operator inside Action <T> does not work
Have an Action delegate and try using the ternary operator with lambdas inside it:
Action<string> action = new Action<string>( str => (str == null) ?
Console.WriteLine("isnull") : Console.WriteLine("isnotnull")
Gives the old error "only assignment, reduction, etc. allowed."
Is it possible somehow?
+3