I have a ASP.NET GridView
with a column mapped to a boolean. I want do display \"Yes\"/\"No\" instead of \"True\"/\"False\". Well actually I want \"Ja\"/\"Nej\"
You could use a Mixin.
///
/// Adds "mixins" to the Boolean class.
///
public static class BooleanMixins
{
///
/// Converts the value of this instance to its equivalent string representation (either "Yes" or "No").
///
///
/// string
public static string ToYesNoString(this Boolean boolean)
{
return boolean ? "Yes" : "No";
}
}