❔ Assign result from await to a variable
Is there a difference between those two calls?
var awaitable = await GetObject();
otherObject.IntProperty = awaitable.IntProperty;
// vs.
otherObject.IntProperty = (await GetObject()).IntProperty;
4 Replies
Nothing significant, no
@canton7 thanks
But keep in mind the first is easier to debug 🙂
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.