Esempio n. 1
0
        /// <summary>
        /// Gets the namespaces that are used within the current scope
        /// </summary>
        /// <returns>The namespaces that are used within the current scope</returns>
        public ISymbolNamespace[] GetNamespaces()
        {
            int nmNum;

            private_scope.GetNamespaces(0, out nmNum, null);
            ISymUnmanagedNamespace[] unNams  = new ISymUnmanagedNamespace[nmNum];
            ISymbolNamespace[]       manNams = new ISymbolNamespace[nmNum];

            private_scope.GetNamespaces(nmNum, out nmNum, unNams);
            for (int i = 0; i < nmNum; i++)
            {
                manNams[i] = new SymbolNamespace(unNams[i]);
            }
            return(manNams);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the namespaces that are used within the current scope
        /// </summary>
        /// <returns>The namespaces that are used within the current scope</returns>
        public ISymbolNamespace[] GetNamespaces()
        {
            int nmNum;
              private_scope.GetNamespaces(0, out nmNum, null);
              ISymUnmanagedNamespace[] unNams = new ISymUnmanagedNamespace[nmNum];
              ISymbolNamespace[] manNams = new ISymbolNamespace[nmNum];

              private_scope.GetNamespaces(nmNum, out nmNum, unNams);
              for (int i = 0; i < nmNum; i++)
            manNams[i] = new SymbolNamespace(unNams[i]);
              return manNams;
        }