If you had a filled IQueryable variable.
How would you add a new empty entry in the end of that list?
Here is what I have to do:
- if there is 2 entry, add 3 empty entry
- if there is 0 entry, add 5 empty entry
- if there is 5 entry, add 5 empty entry
You can now see the pattern and it's for a repeater in asp.net.
Should I simply create a generic list(.toList()) and use the add functionality or is there any better way to do this?