Tuesday, 15 July 2014

c# - How to ContinueWith antecedent's state object? -



c# - How to ContinueWith antecedent's state object? -

is there way pass state object continuewith function in .net 4.0? alternative available in .net 4.5.

i reviewed source code of .net 4.0, hard codes state object null when creates continued task.

the .net 4 version of continuewith not provide option.

you can, however, utilize closure or wrap info task<t> itself, depending on how generated, in order access state info created within antecedent task.

c# task-parallel-library

No comments:

Post a Comment