Why can't use Task<>.Result property?

后端 未结 3 949
深忆病人
深忆病人 2020-12-12 07:05

I have a problem with my tasks. When I try to recive returned variable from my task I can\'t use a .Result property to get it. Here is my code:

var nextEleme         


        
3条回答
  •  无人及你
    2020-12-12 07:31

    You should use Task for the buffering variable. Not specifying the type means that the operation is not expected to return any result.

提交回复
热议问题