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 );
Return: object reference. Throws Exception if type can not be converted
Parameters: SourceString
The input string to convert

TargetType
The Type to convert it to

See also:

Class wwUtils

Overloads:

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

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