Closed BADF00D closed 5 years ago
Version with property.
namespace SomeNamespace
{
public class SomeClass
{
private MemoryStream Mem { get; set; }
public async Task Do()
{
Mem = await Create();
}
public Task<MemoryStream> Create()
{
return Task.FromResult(new MemoryStream());
}
}
}
Screenshot:
Prerequisites
Description
When I assign a field/property via await Expression, I get a local variable not disposed, but I should get an field not disposed.
Source Code
Screenshot