[x] I have verified that I am running the latest version of DisposableFixer: 1.6.0
[x] I have searched open and closed issues to ensure it has not already been reported
Description
When using CodeFix "Dispose after last usage", the dispose call is introduced before the last usage.
Source Code
namespace Test
{
public class DisposeAfterLastUsageDoesNotWork
{
public async Task Do()
{
var fac = new MemoryStream();
var bytesRead = await fac.ReadAsync(new byte[10], 0, 10);
Console.WriteLine(bytesRead);
}
}
}
Prerequisites
Description
When using CodeFix "Dispose after last usage", the dispose call is introduced before the last usage.
Source Code
Screenshot