Exemplo n.º 1
0
        private Task WriteItemAsync(XmlWriter writer)
        {
            if (this.Item == null)
            {
                throw new InvalidOperationException(SR.ItemFormatterDoesNotHaveItem);
            }
            XmlDictionaryWriter w = XmlDictionaryWriter.CreateDictionaryWriter(writer);

            return(_feedSerializer.WriteItemContentsAsync(w, this.Item));
        }