System.Diagnostics.SymbolStore.SymScope.GetNamespaces C# (CSharp) Method

GetNamespaces() public method

public GetNamespaces ( ) : ISymbolNamespace[]
return ISymbolNamespace[]
        public ISymbolNamespace[] GetNamespaces()  
        {
            COMException Exception;
            int hr;
            uint i;
            int cNamespaces;
            IntPtr[] NamespacePointers;
            SymNamespace[] Namespaces;
            hr = SymScope_GetNamespaces(m_Scope, 0, out cNamespaces, null);
            if (hr < 0)
            {
                Exception = new COMException("Call to GetNamespaces failed.", hr);
                throw Exception;
            }
            NamespacePointers = new IntPtr[cNamespaces];
            Namespaces = new SymNamespace[cNamespaces];
            hr = SymScope_GetNamespaces(m_Scope, cNamespaces, out cNamespaces, NamespacePointers);
            if (hr < 0)
            {
                Exception = new COMException("Call to GetNamespaces failed.", hr);
                throw Exception;
            }
            for (i = 0; i < cNamespaces; i++)
            {
                Namespaces[i] = new SymNamespace(NamespacePointers[i]);
            }
            return Namespaces;
        }
    }