Пример #1
0
 private bool TryAssignPropertyAttribute(ToolboxSelfPropertyAttribute attribute)
 {
     //we can only have one property attribute for a non-array property
     if (propertyAttribute != null || isArray)
     {
         return(false);
     }
     else
     {
         propertyAttribute = attribute;
         return(true);
     }
 }
Пример #2
0
 private bool TryAssignSelfPropertyAttribute(ToolboxSelfPropertyAttribute attribute)
 {
     return(!isArray && TryAssignBasePropertyAttribute(attribute));
 }