Conversion Error in LINQ

Getting Compiler Error, where to correct in the below sysntax

linesArray.
Select(Function(line, index) New With {Key .Line = line, Key .Index = index + 1}).
Where(Function(x) Arr_FilterRec.Contains(x.Index)).
Select(Function(x) x.Index.ToString() & ". " & x.Line).
ToArray()

Sequence2.xaml: BC30512: Option Strict On disallows implicit conversions from ‘Integer’ to ‘String’. The selected value is incompatible with the property type.

maybe you want to check against a string / keyword / line#
currently, it looks for the index an int32 number

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.