BinarySerializerDeserializeByReaderT(BinaryReader, BinarySerializationOptions, IEnumerableType) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static T DeserializeByReader<T>(
BinaryReader reader,
BinarySerializationOptions options,
IEnumerable<Type>? expectedCustomTypes
)
Public Shared Function DeserializeByReader(Of T) (
reader As BinaryReader,
options As BinarySerializationOptions,
expectedCustomTypes As IEnumerable(Of Type)
) As T
public:
generic<typename T>
static T DeserializeByReader(
BinaryReader^ reader,
BinarySerializationOptions options,
IEnumerable<Type^>^ expectedCustomTypes
)
static member DeserializeByReader :
reader : BinaryReader *
options : BinarySerializationOptions *
expectedCustomTypes : IEnumerable<Type> -> 'T
- reader BinaryReader
- The reader that wraps the stream containing the serialized data. The reader will remain open after deserialization.
- options BinarySerializationOptions
- Options of the deserialization.
- expectedCustomTypes IEnumerableType
- The types that are expected to present in the serialization stream by name.
If SafeMode is not enabled in options
or the 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.