DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.1.0" />

 TaskType

public static class TaskType
Provides specialized reflection methods for task types.
public static Type GetTaskType(this Type taskType)

Obtains result type from task type.

public static Type MakeTaskType(this Type taskResult)

Returns task type for the specified result type.

public static Type MakeTaskType(this Type taskResult, bool valueTask)

Returns task type for the specified result type.