mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
docs: Resolving closure warning
This commit is contained in:
parent
8d753e1cf9
commit
b24c93df09
1 changed files with 1 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ namespace ICD.Common.Utils.Timers
|
||||||
{
|
{
|
||||||
using (IEnumerator<T> enumerator = enumerable.GetEnumerator())
|
using (IEnumerator<T> enumerator = enumerable.GetEnumerator())
|
||||||
{
|
{
|
||||||
|
// ReSharper disable once AccessToDisposedClosure
|
||||||
while (Profile(() => enumerator.MoveNext(), name))
|
while (Profile(() => enumerator.MoveNext(), name))
|
||||||
yield return enumerator.Current;
|
yield return enumerator.Current;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue