ConversionHelper.ConvertFromString Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

ConvertFromString(string, Type) Converts the specified text to an object.
ConvertFromString(string) Converts the specified text to an object.

ConvertFromString(string, Type)

Converts the specified text to an object.

public static object ConvertFromString(string value, Type type)

Parameters

value
string

The text representation of the object to convert.

type
System.Type

The type of the object to convert.

Returns

object

An object of type type, or null.

ConvertFromString(string)

Converts the specified text to an object.

public static T ConvertFromString<T>(string value)

Parameters

value
string

The text representation of the object to convert.

Returns

An object that represents the converted text.