Recursive linq and this?
问题 I want to find all Persons who are left handed using recursive linq via extension method. I've seen this answer but there is a problem (imho) with the this : (when applied as extension method because of the static context) keyword this is not valid in static method So here is what i've tried : I have a Person class : public class Person { public List<Person> Children = new List<Person>(); public bool IsLeftHanded; } And here is the code for the externsion method : public static class