Click or drag to resize

SerializationSerializeT(T, SerializationFormat, Stream) Method

Serializes an Object.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static void Serialize<T>(
	T serializableObject,
	SerializationFormat serializationFormat,
	Stream serializedOutput
)
View Source

Parameters

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

Type Parameters

T
Type of the serializableObject.
Exceptions
ExceptionCondition
ArgumentNullExceptionserializedOutput or serializableObject is null.
NotSupportedExceptionSpecified serializationFormat is not supported.
See Also