Class BooleanToStringValueConverter
- Namespace
- MADE.Data.Converters
- Assembly
- MADE.Data.Converters.dll
Defines a value converter from bool to string with a pre-determined TrueValue and FalseValue.
public class BooleanToStringValueConverter : IValueConverter<bool, string>
- Inheritance
-
BooleanToStringValueConverter
- Implements
- Inherited Members
- Extension Methods
Properties
FalseValue
Gets or sets the negative/false value.
public string FalseValue { get; set; }
Property Value
TrueValue
Gets or sets the positive/true value.
public string TrueValue { get; set; }
Property Value
Methods
Convert(bool, object?)
Converts the value to the string type.
public string Convert(bool value, object? parameter = null)
Parameters
valueboolThe value to convert.
parameterobjectThe optional parameter used to help with conversion.
Returns
ConvertBack(string, object?)
Converts the value back to the bool type.
public bool ConvertBack(string value, object? parameter = null)
Parameters
valuestringThe value to convert.
parameterobjectThe optional parameter used to help with conversion.