What does this mean? I am returning a IList<T> from my business layer and then adding items from the UI, but the app is complaining that it’s a fixed-size list. How can I overcome this problem?
What does this mean? I am returning a IList<T> from my business layer and
Share
Could you just create a new list? IE:
If you’ve got to get the list back to the business logic, check to make sure there’s not some other
add()functionality (insert,add,append,prepend, etc). Some classes don’t allow you to directly modify their internal collections as they prefer to do some sanity checking first, or perform some other type of working with the new data that might not should be exposed to the consumer.