C
C#2mo 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
ero2mo 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_XDOP2mo ago
Yeah I did that, thanks :P. I was just wondering why my VS did that
ero
ero2mo ago
it'd be a good question to ask #roslyn, ideally with a small repro if you can other than that, $close
MODiX
MODiX2mo 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