Closed HenrikAkseliValve closed 3 months ago
I do not know I'm first to encounter this, however, loop that removes modules without translation units, could not have worked.
In C# Enumerator prohibits editing the collection so you cannot remove modules from options.Module while iterating options.Module.
options.Module
Chose RemoveAll for its simplicity. Not necessary optimal solution although it might be.
RemoveAll
@dotnet-policy-service agree
Thank you. Fastest merge request I have ever requested. 👏
Thanks for the contribution too.
I do not know I'm first to encounter this, however, loop that removes modules without translation units, could not have worked.
In C# Enumerator prohibits editing the collection so you cannot remove modules from
options.Module
while iteratingoptions.Module
.Chose
RemoveAll
for its simplicity. Not necessary optimal solution although it might be.