Ejemplo n.º 1
0
        public void WriteTo(WriterContext context)
        {
            Encoding enc = MediaTypeParser.GetEncodingFromCharset(context.Request.ContentType, context.Session.DefaultEncoding);

              using (var writer = new XmlTextWriter(context.HttpStream, enc))
              {
            WriteTo(context.Data, writer, context);
              }
        }
Ejemplo n.º 2
0
 protected abstract void WriteTo(object item, XmlWriter writer, WriterContext context);