Ejemplo n.º 1
0
 bool ProcessArrayItemAttribute(PropertyInfo propertyInfo, XmlArrayItemAttribute attribute)
 {
     if (attribute != null)
     {
         var name     = string.IsNullOrEmpty(attribute.Name) ? propertyInfo.Name : attribute.Name;
         var id       = PropertyName.CreateForElement(name, attribute.Prefix);
         var property = new EnumerationPropertyVisitor(propertyInfo);
         ProcessNestedAttributes(id, property);
         properties[id] = property;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 bool ProcessArrayItemAttribute (PropertyInfo propertyInfo, XmlArrayItemAttribute attribute)
 {
     if (attribute != null) {
         var name = string.IsNullOrEmpty (attribute.Name) ? propertyInfo.Name : attribute.Name;
         var id = PropertyName.CreateForElement (name, attribute.Prefix);
         var property = new EnumerationPropertyVisitor (propertyInfo);
         ProcessNestedAttributes (id, property);
         properties[id] = property;
         return true;
     } else {
         return false;
     }
 }