Click or drag to resize

SerializationGetObject(Byte) Method

Note: This API is now obsolete.

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

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

Parameters

serializedObject  Byte
A Byte array representing the object (serializedObject) to deserialize.

Return Value

Object
An Object 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