|
SerializationGetObjectT(Byte) Method
|
Note: This API is now obsolete.
Performs binary deserialization on the byte array and returns the typed object for it.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.254-beta+b1c32a8191971a5ec09744a3eb270cb5508e892c
Syntax[ObsoleteAttribute("This method will be removed in future builds, use the Deserialize() method instead.")]
public static T GetObject<T>(
byte[] serializedObject
)
<ObsoleteAttribute("This method will be removed in future builds, use the Deserialize() method instead.")>
Public Shared Function GetObject(Of T) (
serializedObject As Byte()
) As T
public:
[ObsoleteAttribute(L"This method will be removed in future builds, use the Deserialize() method instead.")]
generic<typename T>
static T GetObject(
array<unsigned char>^ serializedObject
)
[<ObsoleteAttribute("This method will be removed in future builds, use the Deserialize() method instead.")>]
static member GetObject :
serializedObject : byte[] -> 'T
JavaScript does not support generic types or methods.
View SourceParameters
- serializedObject Byte
- A Byte array representing the object (serializedObject) to deserialize.
Type Parameters
- T
- The type of the object to create from the serialized byte array serializedObject.
Return Value
TA type T based on
serializedObject.
Exceptions
Remarks
This function will throw an error during deserialization if the input data is invalid,
consider using TryGetObject to prevent needing to implement exception handling.
See Also