Improvement in the demo

Jul 10, 2009 at 6:51 PM

 

By copying the textbox.text into a string variable and using it in the queries in button1click event

improves performance significantly

 

                string StudentName = studentNameBox.Text;

                IEnumerable<Student> studentsNamedAaronFromConstant =
                    from student in _testStudents
                    where student.FirstName == StudentName
                    select student;

Developer
Jul 11, 2009 at 10:06 PM

Thanks for the suggestion. I threw the change into the trunk, (is that what you were thinking?)