Пример #1
0
        public void WriteDeferred(XamlDeferringLoader loader, XamlNodeList nodeList, bool setValue)
        {
            nodeList.Writer.Close();
            var obj = loader.Load(nodeList.GetReader(), service_provider);
            var cms = CurrentMemberState;

            if (cms != null)
            {
                cms.Value = obj;
            }
            else
            {
                var state = object_states.Peek();
                state.Value          = obj;
                state.IsInstantiated = true;
            }
            if (setValue)
            {
                manager.Value();
            }
        }
Пример #2
0
 public DeferredWriter(XamlSchemaContext context, XamlDeferringLoader loader)
 {
     List   = new XamlNodeList(context);
     Loader = loader;
 }