cross-platform-generator
Public Member Functions
cpg.StringBoolConverter Class Reference

Converts string value to bool value. More...

Inheritance diagram for cpg.StringBoolConverter:

Public Member Functions

object Convert (object value, Type targetType, object parameter, CultureInfo culture)
 Converts a string to a boolean. More...
 
object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
 Converts a bool to a string. More...
 

Detailed Description

Converts string value to bool value.

Author
Stan Pepels

Member Function Documentation

◆ Convert()

object cpg.StringBoolConverter.Convert ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)
inline

Converts a string to a boolean.

Parameters
[in]value(object) The value to convert
[in]targetType(Type) The Expected type that is returned.
[in]parameter(object) An optional parameter that can be used to adjust the conversion behaviour
[in]culture(CultureInfo) Culture info about the locale of the system
Returns
(object) The bool value as parsed from the string.

◆ ConvertBack()

object cpg.StringBoolConverter.ConvertBack ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)
inline

Converts a bool to a string.

Parameters
[in]value(object) The value to convert.
[in]targetType(Type) The Expected type that is returned.
[in]parameter(object) An optional parameter that can be used to adjust the conversion behaviour.
[in]culture(CultureInfo) Culture info about the locale of the system.
Returns
(object) The string value representation of the bool.

The documentation for this class was generated from the following file: