<IEnumerator>F8CC028BDE1CDD1AC29BF3DDB4981669BC4702D8256FB041147A1B7908FB6E4CB__BoxedEnumerator<TEnumerator, T>
sealed class <IEnumerator>F8CC028BDE1CDD1AC29BF3DDB4981669BC4702D8256FB041147A1B7908FB6E4CB__BoxedEnumerator<TEnumerator, T> : IEnumerator<T>, IEnumerator, IDisposable, IAsyncEnumerator<T>, IAsyncDisposable where TEnumerator : struct, IEnumerator<TEnumerator, T>
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace DotNext.Collections.Generic
{
internal sealed class <IEnumerator>F8CC028BDE1CDD1AC29BF3DDB4981669BC4702D8256FB041147A1B7908FB6E4CB__BoxedEnumerator<TEnumerator, T> : IEnumerator<T>, IEnumerator, IDisposable, IAsyncEnumerator<T>, IAsyncDisposable where TEnumerator : struct, IEnumerator<TEnumerator, T>
{
[CompilerGenerated]
private TEnumerator <enumerator>P = enumerator;
[CompilerGenerated]
private CancellationToken <token>P = token;
public T Current => <enumerator>P.Current;
object IEnumerator.Current {
get {
return <enumerator>P.Current;
}
}
public <IEnumerator>F8CC028BDE1CDD1AC29BF3DDB4981669BC4702D8256FB041147A1B7908FB6E4CB__BoxedEnumerator(TEnumerator enumerator, CancellationToken token = default(CancellationToken))
{
}
bool IEnumerator.MoveNext()
{
return <enumerator>P.MoveNext();
}
ValueTask<bool> IAsyncEnumerator<T>.MoveNextAsync()
{
if (!<token>P.IsCancellationRequested)
return ValueTask.FromResult<bool>(<enumerator>P.MoveNext());
return ValueTask.FromCanceled<bool>(<token>P);
}
void IEnumerator.Reset()
{
<enumerator>P.Reset();
}
void IDisposable.Dispose()
{
<enumerator>P = default(TEnumerator);
}
ValueTask IAsyncDisposable.DisposeAsync()
{
<enumerator>P = default(TEnumerator);
return ValueTask.CompletedTask;
}
}
}