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); } }
private bool TryAssignSelfPropertyAttribute(ToolboxSelfPropertyAttribute attribute) { return(!isArray && TryAssignBasePropertyAttribute(attribute)); }