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