I have a list of objects.
I want to determine when the user will get the first or last object in the list, that way I can disable some buttons on the page.
For example I might have some boolean and if the object requested is last or first in the list, then it will return true, otherwise false.
Any idea?
You can wrtie an extension method such as
You can use it like