コード例 #1
0
        public IObjectBinding AddNewObjectBinding()
        {
            var element = new ObjectBinding();

            Repository.Add(element);

            return element;
        }
コード例 #2
0
        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();
            }


        }