C#C
C#4y ago
superman

How to combine null coascence and ternary operator?

Hello, I have a string variable A. And I want to fill thid string A with value Yes if a bool is true, No if bool is false and empty string if bool is null, how do I do this in 1 line
Was this page helpful?