If i understand you well, you want to return the number of line where searched text has been found...
So:
string[] lines = {"asdasd", "Testa", "Geter", "Better"};
string tofind = "te";
var result = lines.Select((line, NoOfLine) => new {line, NoOfLine})
.Where(l => l.line.Contains(tofind))
.Select(l => l.NoOfLine)
.ToList();