PredicateExpression.cs

Posts   
 
    
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 07-Apr-2006 00:36:45   

Is this:


public IEnumerator GetEnumerator()
        {
            return this.GetEnumerator();
        }

Supposed to work?

Should it be:


public IEnumerator GetEnumerator()
        {
            return _predicates.GetEnumerator();
        }

confused

I get stack overflows when I try to for-each through a PredicateExpression...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 07-Apr-2006 09:32:11   

mikeg22 wrote:

Is this:


public IEnumerator GetEnumerator()
        {
            return this.GetEnumerator();
        }

Supposed to work?

Should it be:


public IEnumerator GetEnumerator()
        {
            return _predicates.GetEnumerator();
        }

confused

I get stack overflows when I try to for-each through a PredicateExpression...

Fixed in next build.

Workaround: use a for loop.

Frans Bouma | Lead developer LLBLGen Pro