This project is read-only.

Improvement in the demo

Jul 10, 2009 at 7: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;

Jul 11, 2009 at 11:06 PM

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