Getting double instead of the task in C# Task, why?
<p>I have the interface:</p>

<pre><code>public interface IService
{
    Task&lt;double&gt; GetData(int id);
}
</code></pre>

<p>And I need to use this interface in my class:</p>

<pre><code>//_svc is a Type of IService

public async void Doit()
{
    Task&lt;double&gt; task = await _svc.GetData(id);
}
</code></pre>

<p>And when I do it, it says that it can't convert type double into <em>Task&lt;double></em><br>
Why is this double instead of the task? The interface clearly specifies that this is a task and here I need to get the task, not the value.</p>