如何序列化F#中的None?下面的代碼引發System.ArgumentNullException: Object Graph cannot be null.
錯誤:BinaryFormatter對Option/None進行序列化時使用F#拋出ArgumentNullException#
let f = System.Runtime.Serialization.Formatters.Binary.BinaryFormatter()
let m = System.IO.MemoryStream()
f.Serialize (m, None)
一些無:D。有趣但很有魅力! –