public FormatText ( bool showOutcome, Separator separator ) : string | ||
showOutcome | bool | Shows the outcome |
separator | Separator | The separator |
return | string |
public string FormatText(bool showOutcome, Separator separator)
{
if (!showOutcome) return Name;
if (separator == Separator.Space) return string.Format("{0} {1}", Outcome, Name);
return string.Format("{0},{1}", Outcome, Name);
}