コード例 #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);
        }
コード例 #2
0
ファイル: SymbolReader.cs プロジェクト: dbremner/perwapi
        /// <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;
        }