Read an object T from a string.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function LoadObjectFromString(Of T As New) ( _
	str As String, _
	createAnInstanceIfNotExists As Boolean _
) As T
C#
public static T LoadObjectFromString<T>(
	string str,
	bool createAnInstanceIfNotExists
)
where T : new()

Parameters

str
Type: System..::..String
createAnInstanceIfNotExists
Type: System..::..Boolean

Type Parameters

T

Return Value

See Also