/** * Convenience method to remove the first occurence of the MapAttributeType from the attributeTypes list. Null parameters are not allowed. * If the list is null, just return false. * * * @return True if removed. False otherwise * @param attributeType The MapAttributeType to remove from the attributeTypes list * @throws ArgumentNullException If attributeType is null */ public bool RemoveAttributeType(MapAttributeType attributeType) { return(attributeTypes.Remove(attributeType)); }
/** * Convenience method to add a MapAttributeType to the attributeTypes list. Null parameters are not allowed. * If the list is null, just create a new instance and add to it. * * * @param attributeType The MapAttributeType to add to the attributeTypes list * @throws ArgumentNullException If attributeType is null */ public void AddAttributeType(MapAttributeType attributeType) { attributeTypes.Add(attributeType); }