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

            if (property.IsUnknown)
            {
                throw new XamlObjectWriterException($"Cannot set unknown member '{property}'")
                      {
                          LineNumber   = line,
                          LinePosition = column
                      }
            }
            ;

            intl.WriteStartMember(property);

            var defer = property.DeferringLoader;

            if (defer != null)
            {
                deferredWriter = new DeferredWriter(sctx, defer.ConverterInstance);
                deferredWriter.DeferCount++;
                return;
            }
        }
예제 #2
0
        public override void WriteStartMember(XamlMember property)
        {
            if (deferredWriter != null)
            {
                deferredWriter.Writer.WriteStartMember(property);
                deferredWriter.DeferCount++;
                return;
            }

            intl.WriteStartMember(property);

            var defer = property.DeferringLoader;

            if (defer != null)
            {
                deferredWriter = new DeferredWriter(sctx, defer.ConverterInstance);
                deferredWriter.DeferCount++;
                return;
            }
        }
예제 #3
0
 public override void WriteStartMember(XamlMember property)
 {
     intl.WriteStartMember(property);
 }