Click or drag to resize

SerializationSerializeT(T, SerializationFormat) Method

Serializes an Object.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public static byte[] Serialize<T>(
	T serializableObject,
	SerializationFormat serializationFormat
)
View Source

Parameters

serializableObject  T
Object to be serialized.
serializationFormat  SerializationFormat
SerializationFormat in which the serializableObject is to be serialized.

Type Parameters

T
Type of the serializableObject.

Return Value

Byte
An Array of Byte of the serialized Object.
Exceptions
ExceptionCondition
ArgumentNullExceptionserializableObject is null.
NotSupportedExceptionSpecified serializationFormat is not supported.
See Also