Provides extension methods for working against Java Enumeration instances.
More...
|
| static IEnumerator< T > | AsEnumerator< T > (this Enumeration enumeration) |
| | Returns the appropriate wrapper type for the given Enumeration.
|
| |
| static IEnumerable< T > | AsEnumerable< T > (this Enumeration enumeration) |
| | Returns the appropriate wrapper type for the given Enumeration.
|
| |
Provides extension methods for working against Java Enumeration instances.
Definition at line 9 of file EnumerationExtensions.cs.
◆ AsEnumerable< T >()
| static IEnumerable< T > java.util.EnumerationExtensions.AsEnumerable< T > |
( |
this Enumeration | enumeration | ) |
|
|
static |
Returns the appropriate wrapper type for the given Enumeration.
- Template Parameters
-
- Parameters
-
- Returns
Definition at line 30 of file EnumerationExtensions.cs.
31 {
32 var e = enumeration.AsEnumerator<T>();
33 while (e.MoveNext())
34 yield return e.Current;
35 }
◆ AsEnumerator< T >()
| static IEnumerator< T > java.util.EnumerationExtensions.AsEnumerator< T > |
( |
this Enumeration | enumeration | ) |
|
|
static |
Returns the appropriate wrapper type for the given Enumeration.
- Template Parameters
-
- Parameters
-
- Returns
The documentation for this class was generated from the following file: