We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDisposable
expect to call Dispose on local enumerator in a try-finally block, like below
Dispose
try-finally
public bool Any(Func<global::Foo, bool> predicate) { var copy = this; global::System.Collections.Generic.IEnumerator<global::Foo> enumerator_sn0QN1 = default; enumerator_sn0QN1 = copy.source_sn0QN1.GetEnumerator(); try { while (enumerator_sn0QN1.MoveNext()) { var current_sn0QN1 = enumerator_sn0QN1.Current; if (predicate.Invoke(current_sn0QN1)) return true; } return false; } finally { enumerator_sn0QN1.Dispose(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
expect to call
Dispose
on local enumerator in atry-finally
block, like belowThe text was updated successfully, but these errors were encountered: