Closed SoulFireMage closed 8 years ago
Hi,
you need to pass it an actual stream parameter, like MemoryStream
or FileStream
. Unchecked.defaultof
is a placeholder F# primitive that in this case returns null
, hence the error. If you just want to get serialized bytes, try using the Pickle
and UnPickle
methods.
Hi
I've been trying to use this library and had a general issue with the stream being unreadable. So I've had a go at using the simplest case example from this tutorial instead.
The code below is what I've tried (I've omitted the mandatory open statements).
The error I get is the following:
System.ArgumentNullException: Value cannot be null. Parameter name: stream
I'm using Visual Studio 2015 Community Edition and F#4