|
|
@@ -127,18 +127,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
}
|
|
|
|
|
|
@@ -218,18 +218,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
}
|
|
|
|
|
|
@@ -313,18 +313,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
_currentSource = default;
|
|
|
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
@@ -411,18 +411,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
_currentSource = default;
|
|
|
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
@@ -510,18 +510,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
_currentSource = default;
|
|
|
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
@@ -616,18 +616,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
_currentSource = default;
|
|
|
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
@@ -718,18 +718,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
}
|
|
|
|
|
|
@@ -816,18 +816,18 @@ namespace System.Linq
|
|
|
|
|
|
public override async ValueTask DisposeAsync()
|
|
|
{
|
|
|
- if (_sourceEnumerator != null)
|
|
|
- {
|
|
|
- await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
- _sourceEnumerator = null;
|
|
|
- }
|
|
|
-
|
|
|
if (_resultEnumerator != null)
|
|
|
{
|
|
|
await _resultEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
_resultEnumerator = null;
|
|
|
}
|
|
|
|
|
|
+ if (_sourceEnumerator != null)
|
|
|
+ {
|
|
|
+ await _sourceEnumerator.DisposeAsync().ConfigureAwait(false);
|
|
|
+ _sourceEnumerator = null;
|
|
|
+ }
|
|
|
+
|
|
|
await base.DisposeAsync().ConfigureAwait(false);
|
|
|
}
|
|
|
|