C
C#4w ago
Jiry_XD

✅ Implementing IAsyncLifeTime difference

When I implement the interface, the following happens as you can see in the picture. Why does the dispose not get set to public and have the extra IAsyncLifeTime.DisposeAsync ? I do not have any other DisposeAsync in my class?
No description
4 Replies
ero
ero4w ago
i'm not sure why the code fix chose to implement this member explicitly, but you should be able to just change it back manually?
public Task DisposeAsync()
{
throw new NotImplementedException();
}
public Task DisposeAsync()
{
throw new NotImplementedException();
}
Jiry_XD
Jiry_XDOP4w ago
Yeah I did that, thanks :P. I was just wondering why my VS did that
ero
ero4w ago
it'd be a good question to ask #roslyn, ideally with a small repro if you can other than that, $close
MODiX
MODiX4w ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server