Click or drag to resize

SerializationDeserializeT(Stream, SerializationFormat) Method

Deserializes a serialized Object.

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

Parameters

serializedObject  Stream
Stream containing the serialized Object that is to be deserialized.
serializationFormat  SerializationFormat
SerializationFormat in which the serializedObject was serialized.

Type Parameters

T
Type of the deserialized Object to be returned.

Return Value

T
The deserialized Object.
Exceptions
ExceptionCondition
ArgumentNullExceptionserializedObject is null.
NotSupportedExceptionSpecified serializationFormat is not supported.
See Also