Exemple #1
0
    //DEBUGED
    private int find(DirtySet d, ArrayList list)
    {
        for (int i = 0; i < list.Count; i++)
        {
            if (d.equal((DirtySet)list[i]))
            {
                return(i);
            }
        }

        return(-1);
    }
Exemple #2
0
    private int find(DirtySet d, ArrayList list)
    {
        int index = -1;

        for (int i = 0; i < list.Count && index == -1; i++)
        {
            if (d.equal((DirtySet)list[i]))
            {
                index = i;
            }
        }

        return(index);
    }