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 );

Return Value

object reference. Throws Exception if type can not be converted

Parameters

SourceString
The input string to convert

TargetType
The Type to convert it to

Overloads:

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

See also:

Class wwUtils


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