wwUtils.StringToTypedValue

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

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

Return Value

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.

Overloads:

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

See also:

Class wwUtils


  Last Updated: 7/7/2008 | © West Wind Technologies, 2008