Esempio n. 1
0
        public override void WriteStartMember(XamlMember property)
        {
            if (deferredWriter != null)
            {
                deferredWriter.Writer.WriteStartMember(property);
                deferredWriter.DeferCount++;
                return;
            }

            if (property.IsUnknown)
            {
                throw WithLineInfo(new XamlObjectWriterException($"Cannot set unknown member '{property}'", null));
            }

            intl.WriteStartMember(property);

            var defer = property.DeferringLoader;

            if (defer != null)
            {
                deferredWriter = new DeferredWriter(sctx, defer.ConverterInstance);
                deferredWriter.DeferCount++;
                return;
            }
        }