|
object | Convert (object value, Type targetType, object parameter, CultureInfo culture) |
| Converts an enum to a string. More...
|
|
object | ConvertBack (object value, Type targetType, object parameter, CultureInfo culture) |
| converts a string to an enum More...
|
|
◆ Convert()
object cpg.EnumStringConverter.Convert |
( |
object |
value, |
|
|
Type |
targetType, |
|
|
object |
parameter, |
|
|
CultureInfo |
culture |
|
) |
| |
|
inline |
Converts an enum 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) string representation of the enum value.
◆ ConvertBack()
object cpg.EnumStringConverter.ConvertBack |
( |
object |
value, |
|
|
Type |
targetType, |
|
|
object |
parameter, |
|
|
CultureInfo |
culture |
|
) |
| |
|
inline |
converts a string to an enum
- 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) enum value as parsed from the string.
The documentation for this class was generated from the following file:
- D:/PerforceLocal/Workspaces/CrossPlatformGenerator/cross-platform-generator/vs/cross-platform-generator/utils/converters.cs