Table of Contents

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

string

TrueValue

Gets or sets the positive/true value.

public string TrueValue { get; set; }

Property Value

string

Methods

Convert(bool, object?)

Converts the value to the string type.

public string Convert(bool value, object? parameter = null)

Parameters

value bool

The value to convert.

parameter object

The optional parameter used to help with conversion.

Returns

string

The converted string object.

ConvertBack(string, object?)

Converts the value back to the bool type.

public bool ConvertBack(string value, object? parameter = null)

Parameters

value string

The value to convert.

parameter object

The optional parameter used to help with conversion.

Returns

bool

The converted bool object.