BHoM_Engine
BHoM_Engine copied to clipboard
Reflection_Engine: AddToList method to be added
Description:
Method like:
AddToListProperty(this IBHoMObject, string propertyName, object data)
or
AddToListProperty(this IBHoMObject, string propertyName, IEnumberable<object> data)
that basically pulls out the property, checks that it is a list, and adds the provided object(s) to it. Should probably use the second options, as it makes more sense from the side of the UI.
As SetProperty can handle this I am considering this issue complete by that action - feel free to reopen if you disagree @IsakNaslundBh
DOnt think this is fully closed out actually. SetProperty is overriding the list with new data while this would instead add, keeping pre-existing items in it.