paulyoder / LinqToExcel

Use LINQ to retrieve data from spreadsheets and csv files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StartsWith works, but Not StartsWith does not.

SteveSirica opened this issue · comments

The following Linq query works:

Dim Res = (From x In oExcelFile.Worksheet(Of clsWLFeatureRec)(WorksheetName)
                       Where x.FeatDesc.StartsWith("Credit for")
                       Select x).ToList

This does not:

Dim Res = (From x In oExcelFile.Worksheet(Of clsWLFeatureRec)(WorksheetName)
                       Where Not x.FeatDesc.StartsWith("Credit for")
                       Select x).ToList

Why?

I guess the logic was not implemented. I will investigate when I can.