|
OpenTAP 9.31
API Reference
|
Plugin interface for string convert providers. More...
Public Member Functions | |
| string | GetString (object value, CultureInfo culture) |
| Returns a string when the implementation supports converting the value. Otherwise, returns null. More... | |
| object | FromString (string stringData, ITypeData type, object contextObject, CultureInfo culture) |
| Creates an object from stringdata. The returned object should be of type 'type'. Returns null if it cannot convert stringdata to type. More... | |
Plugin interface for string convert providers.
FromString(GetString(value), value.GetType()) shall always return a non-null value, if GetString(value) returns a non-null value.
| object OpenTap.IStringConvertProvider.FromString | ( | string | stringData, |
| ITypeData | type, | ||
| object | contextObject, | ||
| CultureInfo | culture | ||
| ) |
Creates an object from stringdata. The returned object should be of type 'type'. Returns null if it cannot convert stringdata to type.
| stringData | |
| type | |
| contextObject | The object on which the value is set. |
| culture | The culture used for the conversion. This value can will default to InvariantCulture if nothing else is selected. |
| string OpenTap.IStringConvertProvider.GetString | ( | object | value, |
| CultureInfo | culture | ||
| ) |
Returns a string when the implementation supports converting the value. Otherwise, returns null.
| value | Cannot be null. |
| culture | The culture used for the conversion. |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:36