internal int GetCurrentActiveScopeIndex()
{
int cClose = 0;
int i = m_iCount - 1;
if (m_iCount == 0)
{
return -1;
}
for (; cClose > 0 || m_ScopeActions[i] == ScopeAction.Close; i--)
{
if (m_ScopeActions[i] == ScopeAction.Open)
{
cClose--;
}
else
cClose++;
}
return i;
}