Closed CumpsD closed 9 years ago
The method has been replaced by this:
/// <summary>
/// Pickles given value to string using provided pickler.
/// </summary>
/// <param name="value">Value to pickle.</param>
/// <param name="pickler">Untyped pickler used for serialization. Its type should be compatible with that of the supplied object.</param>
/// <param name="streamingContext">Streaming context for serialization state. Defaults to the empty streaming context.</param>
member f.PickleToStringUntyped (value : obj, pickler : Pickler, [<O;D(null)>]?streamingContext : StreamingContext) : string =
pickleString (fun m v -> f.SerializeUntyped(m, v, pickler, ?streamingContext = streamingContext)) value
the valueType
parameter has been replaced with the mandatory untyped pickler
parameter. I would write your code as follows:
let deserialize<'a> (event: ResolvedEvent) =
let serializedString = Encoding.UTF8.GetString event.Event.Data
let event : 'a = json.UnPickleOfString<'a>(serializedString)
event
Thanks, that works :+1: :)
In 1.2 the following got removed:
I was using this in the following way:
What is the intended usage with the rewritten API to accomplish the same goal?