Converts bool or bool? to "Yes" if true or "" if false or null.
public static string BoolToYes(this bool val)
public static string BoolToYes(this bool? val)
The bool value to test for true.
bool b = true;string text = b.BoolToYes();