Click or drag to resize

SerializationGetBytes Method

Note: This API is now obsolete.

Performs binary serialization on the serializable object and returns the output as byte array.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
[ObsoleteAttribute("This method will be removed in future builds, use the Serialize() method instead.")]
public static byte[] GetBytes(
	Object serializableObject
)
View Source

Parameters

serializableObject  Object
The serializable object.

Return Value

Byte
A byte array representation of the object if the specified object can be serialized; otherwise an empty array.
See Also