Read an object T from a string.
Namespace:
Devolutions.UtilsAssembly: 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() |
Type Parameters
- T