Class EnumerableBase<T>
A base class for implementing an IEnumerable<T>
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public abstract class EnumerableBase<T> : System.Collections.Generic.IEnumerable<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Improve this Doc View SourcecountItems(System.Collections.Generic.IEnumerable<T>)
Count the number of items in an enumerable by enumeration
Declaration
protected static int countItems(System.Collections.Generic.IEnumerable<T> items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T> | items | The enumerable to count |
Returns
| Type | Description |
|---|---|
| System.Int32 | The size of the enumerable |
GetEnumerator()
Create an enumerator for this collection.
Declaration
public abstract System.Collections.Generic.IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<T> | The enumerator |