protected BinTreeObjectViewModelDataWrapper(SerializationInfo info, StreamingContext context) { JsonSerializerSettings settings = new() { TypeNameHandling = TypeNameHandling.All }; this.Object = JsonConvert.DeserializeObject <BinTreeObjectViewModel>(info.GetString("object"), settings); }
public BinTreeObjectViewModelDataWrapper(BinTreeObjectViewModel objectViewModel) { this.Object = objectViewModel; }