internal Property Add(Property property) { _properties.Add(property.Key, property); return property; }
internal bool Contains(Property property) { return _properties.ContainsValue(property); }
private object Deserialize_Property() { string attrNs, prop; DI.Property deserialized = new DI.Property(); // properties as attributes while(base.XmlReader.MoveToNextAttribute()) { attrNs = base.XmlReader.NamespaceURI; prop = base.XmlReader.LocalName; if(object.ReferenceEquals(attrNs, String.Empty) || object.ReferenceEquals(attrNs, _diNs)) { Set_PropertyAttribute(deserialized, prop); } } if(base.MoveToFirstChild()) { do { attrNs = base.XmlReader.NamespaceURI; prop = base.XmlReader.NameTable.Get(base.XmlReader.LocalName); if(object.ReferenceEquals(attrNs, String.Empty) || object.ReferenceEquals(attrNs, _diNs)) { // check composite elements Set_PropertyAttribute(deserialized, prop); } } while(base.MoveToNextSibling()); } return deserialized; }