Thomas Levesque 11/4/2014

Passing parameters by reference to an asynchronous method

Read Original

This technical article discusses a limitation in C# async methods: the inability to use ref or out parameters. It provides a detailed solution using a custom Ref<T> wrapper class to simulate by-reference behavior, complete with code examples and explanations of why the standard approach fails in asynchronous contexts.

Passing parameters by reference to an asynchronous method

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week