How can out string values with Task function in C# i need fix this code to return Task with out string values
public Task<bool> DelUserTemp(string UserID, int FingerIndex ,out string result)
{
return Task.Run(() =>
{
if (true)
{
result = "done";
return true;
}
else
{
result = "error";
return false;
}
});
}