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.
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.
ASPSnippets.com ALL RIGHTS