Hi Team,
I have a list of collection that is ICollection have more than 900 records.
Just i want to read the last record from ICollection.
Please help me how to get last record.
Hi telldurges,
Use LastOrDefault() or Last() methods to get last item of a collection.
Last() - It returns the last element of a sequence.
LastOrDefault() - It returns the last element of a sequence. It returns default value if no element is found.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.