https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.takelast?view=netstandard-2.1&viewFallbackFrom=netcore-3.1
Enumerable.TakeLastTSource(IEnumerableTSource, Int32) Method (System.Linq) | Microsoft Learn
Returns a new enumerable collection that contains the last count elements from source.
enumerablemethodsystemlinqmicrosoft