Optimize below query

  • Thread starter Thread starter naveenkumarbtech
  • Start date Start date
N

naveenkumarbtech

Guest
Hello Can some one please optimize below query



public string FindString(long findnumber)
{
var numbers = Enumerable.Range(1, 10);
var data = numbers.Select(number => new { number = number});
var val = data.FirstOrDefault(d => d.number == findnumber);
return val.ToString();
}


Continue reading...
 
Back
Top