У нас вы можете посмотреть бесплатно Why do you have to return a Task when you use "await" in a C# method? или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Whenever we "await" something in a C# method, the return value is automatically wrapped in a Task, and the return type for the method must include the Task as well. This leads to some strange looking code: the code in the method returns one thing (such as a Person object), but the return type for the method returns another (a Task of Person). In this video, we will look at some code to try to understand this a bit better. Accompanying Article: https://jeremybytes.blogspot.com/2023... Additional Resources: Using Task and Await - http://www.jeremybytes.com/Demos.aspx... Understanding Delegates - http://www.jeremybytes.com/Demos.aspx#GF