Update to linq and yield method

Thank to JB Evain for the first one :)