Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone.
In the code below I have some questions.
Thanks in advance.
I recommend you to go through the following article that explains why you should not bother disposing task objects.
https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/
Regarding using the same variable, for task1, 2 & 3, it is possible. you can have a Task variable say "task" of type Task and use it.
Hope this helps