---
title: "Discussion on \"Difference between Task() and TaskValue() in C#\" | Hashnode"
description: "Discussion on \"Difference between Task() and TaskValue() in C#\". Introduction\nIn .NET, a Task represents an asynchronous operation that may or may not return a result. When the result is available, you can use the Result property or the await keyword to retrieve it.\nStarting with .NET 5, a new struct called ValueT..."
url: "https://hashnode.com/posts/difference-between-task-and-taskvalue-in-c/6442716341d7bece2c07272e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between Task() and TaskValue() in C#](https://devmosh.hashnode.dev/difference-between-task-and-taskvalue-in-c?utm_source=hashnode&utm_medium=feed)

Introduction In .NET, a Task represents an asynchronous operation that may or may not return a result. When the result is available, you can use the Result property or the await keyword to retrieve it. Starting with .NET 5, a new struct called ValueT...

Apr 21, 2023 · 3 min read · devmosh.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)
-   [#newbieintech](https://hashnode.com/tag/newbieintech)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Moshe Malatji](https://hashnode.com/@moshedev)

@moshedev · JOHANNESBURG, SOUTH AFRICA

  
[View profile](https://hashnode.com/@moshedev)

Mobile Developer

## Responses

Comments are turned off for this post.
