private void OnTypeChanged(Object sender, TypeChangedEventArgs e) { var original = _value.Token; var replacement = e.NewToken; Value = Wrap(replacement, _container); _container.Replace(original, replacement); }
protected void ChangeTo(JToken token) { _container.Replace(_token, token); _token = token; }