BinarySerializerDeserializeByReader(BinaryReader, IEnumerableType) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Object? DeserializeByReader(
BinaryReader reader,
IEnumerable<Type>? expectedCustomTypes
)
Public Shared Function DeserializeByReader (
reader As BinaryReader,
expectedCustomTypes As IEnumerable(Of Type)
) As Object
public:
static Object^ DeserializeByReader(
BinaryReader^ reader,
IEnumerable<Type^>^ expectedCustomTypes
)
static member DeserializeByReader :
reader : BinaryReader *
expectedCustomTypes : IEnumerable<Type> -> Object
- reader BinaryReader
- The reader that wraps the stream containing the serialized data. The reader will remain open after deserialization.
- expectedCustomTypes IEnumerableType
- The types that are expected to present in the serialization stream by name.
If the stream does not contain any types by name, then this parameter can be .
ObjectThe deserialized object.