Class EnumerableBase<T>
A base class for implementing an IEnumerable<T>
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public abstract class EnumerableBase<T> : IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourcecountItems(IEnumerable<T>)
Count the number of items in an enumerable by enumeration
Declaration
protected static int countItems(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 IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> | The enumerator |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable