UtilitiesObjectFromString Method |
The create an object which can be initialized by String.
The object must have a Public Static Method Parse, with a String as parameter.
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static Object ObjectFromString(
string text,
Type objectType
)
Public Shared Function ObjectFromString (
text As String,
objectType As Type
) As Object
public:
static Object^ ObjectFromString(
String^ text,
Type^ objectType
)
static member ObjectFromString :
text : string *
objectType : Type -> Object
Parameters
- text
- Type: SystemString
String, the text value of the object - objectType
- Type: SystemType
Type, the type of object
Return Value
Type:
ObjectAn object of type descripted in
objectType represented by the
textSee Also