Example #1
0
 /// <summary>
 /// Returns an IEnumerator instance that can be used to iterate through
 /// the elements in this list.
 /// </summary>
 IEnumerator IEnumerable.GetEnumerator()
 {
     return(PooledEnumerator.Obtain(this, null));
 }
Example #2
0
 IEnumerator IEnumerable.GetEnumerator()
 {
     return(PooledEnumerator <T> .Obtain((dfList <T>) this, null));
 }
Example #3
0
    // NOTE: The IEnumerable<T> implementation here is horribly broken on iOS, and until
    // I can figure out a way to implement typed enumerators that do work on iOS, please
    // use a for(;;) loop instead of foreach(). Note that this may also apply to using
    // LINQ queries, which may use foreach() or an GetEnumerator() internally.

    /// <summary>
    /// Returns an IEnumerator instance that can be used to iterate through
    /// the elements in this list.
    /// </summary>
    public IEnumerator <T> GetEnumerator()
    {
        return(PooledEnumerator.Obtain(this, null));
    }