Turns a string into a typed value. Useful for auto-conversion routines like form variable or XML parsers.

Syntax:

public static object StringToTypedValue( string SourceString,
	Type TargetType,
	CultureInfo Culture );
Return: object. Throws exception if it cannot be converted.
Parameters: SourceString
The string to convert from

TargetType
The type to convert to

Culture
Culture used for numeric and datetime values.

See also:

Class wwUtils

Overloads:

public static object StringToTypedValue( string SourceString, Type TargetType );

Last Updated: 1/28/2007 | Send topic feedback