ConvertToValueWithStringValue static method
Converts a String to value consistent with MAPI type.
Type of the MAPI property.
String to convert to a value.
Implementation
static Object? ConvertToValueWithStringValue(
MapiPropertyType? mapiPropType,
String? stringValue,
) {
if (!MapiTypeConverterMap.Member!.containsKey(mapiPropType)) {
throw UnsupportedError(
"!!! ConvertToValueWithStringValue($mapiPropType)",
);
}
return MapiTypeConverterMap.Member![mapiPropType!]!.ConvertToValue(
stringValue,
);
}