Beispiel #1
0
        public XElement ToXml()
        {
            XElement RetVal = new XElement("books");

            foreach (TBook BookItem in this)
            {
                RetVal.Add(BookItem.ToXml());
            }
            return(RetVal);
        }
Beispiel #2
0
        public XElement ToXml()
        {
            XElement RetVal = new XElement(XML_THIS_ELEMENT);

            lock (_LockItems) {
                foreach (TBook BookItem in Items)
                {
                    RetVal.Add(BookItem.ToXml());
                }
            }
            return(RetVal);
        }