Example #1
0
        private void OnTypeChanged(Object sender, TypeChangedEventArgs e)
        {
            var original    = _value.Token;
            var replacement = e.NewToken;

            Value = Wrap(replacement, _container);
            _container.Replace(original, replacement);
        }
Example #2
0
 protected void ChangeTo(JToken token)
 {
     _container.Replace(_token, token);
     _token = token;
 }