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