示例#1
0
        void OnSerializing(StreamingContext context)
        {
            IPersistNode persist = _convert as IPersistNode;

            if (persist != null)
            {
                _state = persist.GetState(GetLogger());
            }

            _container = DynamicScriptContainer.GetCachedContainer(_container);
        }
示例#2
0
 private void OnDeserialized(StreamingContext context)
 {
     _container = DynamicScriptContainer.GetCachedContainer(_container);
 }