C#C
C#2y ago
Eguzki

System.Linq and TakeLast() not defined.

Hi.
I am going through the book Head First C# and in chapter 9 when they introduce LINQ I am getting a weird error. I tried to google my problem but I couldn't find a solution.

The book has me calling the method TakeLast() on a list. However Visual Studio is telling me that method is not defined. All I could find on the internet is to make sure I am using System.Linq. Which I am.

I made sure my project properties is using the latest version of C#.

I am really lost about this. Was TakeLast() removed ?
image.png
Was this page helpful?