BinarySerializationFormatterDeserializeFromStreamT(Stream, IEnumerableType) Method
Deserializes the content of the specified serialization
stream from its current position into an instance of
T.
See the
Remarks section of the
DeserializeFromStreamT(Stream, Type) overload for details.
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public T DeserializeFromStream<T>(
Stream stream,
IEnumerable<Type>? expectedCustomTypes
)
Public Function DeserializeFromStream(Of T) (
stream As Stream,
expectedCustomTypes As IEnumerable(Of Type)
) As T
public:
generic<typename T>
T DeserializeFromStream(
Stream^ stream,
IEnumerable<Type^>^ expectedCustomTypes
)
member DeserializeFromStream :
stream : Stream *
expectedCustomTypes : IEnumerable<Type> -> 'T
- stream Stream
- The Stream containing the serialized data. The stream must support reading and will remain open after deserialization.
- expectedCustomTypes IEnumerableType
- The types that are expected to present in the serialization stream by name.
If SafeMode is not enabled in Options
or stream does not contain any types by name, then this parameter can be .
- T
- The expected type of the result.
TThe deserialized instance of
T.