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.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
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