Switch the state machine to a class when emitting unoptimized debug code.
Currently the async state machine is a struct. Struct is better for performance (no allocation) but prevents us to modify local variables in the async method in EnC. The CLR doesn't support adding fields to a struct. (changeset 1252494)
Showing
想要评论请 注册 或 登录