IEnumerable(T).GetEnumerator Method

ObjectQuery<T>.IEnumerable<T>.GetEnumerator Method ()


Returns an enumerator that iterates through the results of the query.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

IEnumerator<T> IEnumerable<T>.GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<T>

An IEnumerator<T> object that can be used to iterate through the results.

Calling IEnumerable<T>.GetEnumerator executes the query.

.NET Framework
Available since 3.5
Return to top
© 2015 Microsoft