public ISymbolScope[] GetChildren()
{
COMException Exception;
int hr;
uint i;
int cChildren;
IntPtr[] ChildrenPointers;
SymScope[] Children;
hr = SymScope_GetChildren(m_Scope, 0, out cChildren, null);
if (hr < 0)
{
Exception = new COMException("Call to GetChildren failed.", hr);
throw Exception;
}
ChildrenPointers = new IntPtr[cChildren];
Children = new SymScope[cChildren];
hr = SymScope_GetChildren(m_Scope, cChildren, out cChildren, ChildrenPointers);
if (hr < 0)
{
Exception = new COMException("Call to GetChildren failed.", hr);
throw Exception;
}
for (i = 0; i < cChildren; i++)
{
Children[i] = new SymScope(ChildrenPointers[i]);
}
return Children;
}