OpenTAP 9.27
API Reference
|
Helper methods for converting to/from strings. More...
Static Public Member Functions | |
static string | GetString (object value, CultureInfo culture=null) |
Turn value to a string if an IStringConvertProvider plugin supports the value. Returns null if the input value is null. More... | |
static bool | TryGetString (object value, out string str, CultureInfo culture=null) |
Try get a string from an object value. More... | |
static object | FromString (string stringdata, ITypeData type, object contextObject, CultureInfo culture=null) |
Turn stringdata back to an object of type 'type', if an IStringConvertProvider plugin supports the string/type. More... | |
static bool | TryFromString (string stringdata, ITypeData type, object contextObject, out object result, CultureInfo culture=null) |
Turn stringdata back to an object of type 'type', if an IStringConvertProvider plugin supports the string/type. returns true if the parsing was successful. More... | |
Helper methods for converting to/from strings.
|
inlinestatic |
Turn stringdata back to an object of type 'type', if an IStringConvertProvider plugin supports the string/type.
stringdata | |
type | |
contextObject | |
culture | If null, invariant culture is used. |
|
inlinestatic |
Turn value to a string if an IStringConvertProvider plugin supports the value. Returns null if the input value is null.
value | The value to be converted to a string. |
culture | If null, invariant culture is used. |
|
inlinestatic |
Turn stringdata back to an object of type 'type', if an IStringConvertProvider plugin supports the string/type. returns true if the parsing was successful.
stringdata | |
type | |
contextObject | |
result | The result of the operation. |
culture |
|
inlinestatic |
Try get a string from an object value.
value | |
str | |
culture |
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46