GetBoolString

public static string GetBoolString(this bool value)
        {
            return value ? "Yes" : "No";
        }
Example:
string active = viewModel.IsActive.GetBoolStringFor();

Description

If you need to show "Yes" or "No" depending on some bool property

Details

Double click on the code to select all.

 

;