Read an object T from a byte array.

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

Syntax

Visual Basic
Public Shared Function LoadObjectFromBytes(Of T As New) ( _
	bytes As Byte(), _
	createAnInstanceIfNotExists As Boolean _
) As T
C#
public static T LoadObjectFromBytes<T>(
	byte[] bytes,
	bool createAnInstanceIfNotExists
)
where T : new()

Parameters

bytes
Type: array<System..::..Byte>[]()[][]
createAnInstanceIfNotExists
Type: System..::..Boolean

Type Parameters

T

Return Value

See Also