Tip: Remember using System.Linq
I was updating an old file that hadn’t been touched since dotNet 2 and wanted to use the Linq extension method ‘Select’ method. But it wasn’t showing up. I checked to make sure the assembly was dotNet 3.5 and it had a reference to System.Core. I was stumped.
Luckily it eventually came to me that I was missing System.Linq from my using list. But it’s an easy thing to miss and the Smart Tags don’t detect it. Maybe there should be an option to make it a warning if a file is missing it.
Leave a comment