1using System.Collections.Generic;
18 public static IEnumerator<T>
AsEnumerator<T>(
this Enumeration enumeration) => enumeration
switch
20 IEnumerator<T> i => i,
32 var e = enumeration.AsEnumerator<T>();
34 yield
return e.Current;
Provides extension methods for working against Java Enumeration instances.
static IEnumerable< T > AsEnumerable< T >(this Enumeration enumeration)
Returns the appropriate wrapper type for the given Enumeration.
static IEnumerator< T > AsEnumerator< T >(this Enumeration enumeration)
Returns the appropriate wrapper type for the given Enumeration.