public IObjectBinding AddNewObjectBinding() { var element = new ObjectBinding(); Repository.Add(element); return element; }
public void ReadXml(XmlReader reader) { if (reader.MoveToContent() == XmlNodeType.Element && reader.LocalName == "ObjectBindingRepository") { reader.Read(); // skip to next node } while (reader.MoveToContent() == XmlNodeType.Element && reader.LocalName == "Item") { var item = new ObjectBinding(); item.ReadXml(reader); AddObjectBinding(item); reader.Read(); } }