void WriteItem(XmlWriter writer) { if (this.Item == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ItemFormatterDoesNotHaveItem))); } XmlDictionaryWriter w = XmlDictionaryWriter.CreateDictionaryWriter(writer); feedSerializer.WriteItemContents(w, this.Item); }
private void WriteItem(XmlWriter writer) { if (this.Item == null) { throw new InvalidOperationException(SR.ItemFormatterDoesNotHaveItem); } XmlDictionaryWriter w = XmlDictionaryWriter.CreateDictionaryWriter(writer); _feedSerializer.WriteItemContents(w, this.Item); }