Esempio n. 1
0
 internal Property Add(Property property)
 {
     _properties.Add(property.Key, property);
     return property;
 }
Esempio n. 2
0
 internal bool Contains(Property property)
 {
     return _properties.ContainsValue(property);
 }
Esempio n. 3
0
 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;
 }