I have a Linq to objects statement
var confirm = from l in lines.Lines where (l.LineNumber == startline.LineNumber) || (l.LineNumber == endline.LineNumber
Check the exception stack trace and see the last bit of your code that executed.