yield: C# specific optimizations and tried to implement v_capture detection