Click or drag to resize

SerializationGetObjectT(Byte) Method

Note: This API is now obsolete.

Performs binary deserialization on the byte array and returns the typed object for it.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.300-beta+b2186e2cd1f968c931b0e151fdd7c839f3d1e9cf
Syntax
[ObsoleteAttribute("This method will be removed in future builds, use the Deserialize() method instead.")]
public static T GetObject<T>(
	byte[] serializedObject
)
View Source

Parameters

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

T
A type T based on serializedObject.
Exceptions
ExceptionCondition
SerializationExceptionSerialized object data is invalid or length is 0.
SecurityExceptionThe caller does not have the required permission.
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