示例#1
0
        public ISymbolNamespace[] GetNamespaces()
        {
            int  count = 0;
            uint i;

            m_reader.GetNamespaces(0, out count, null);
            var unmanagedNamespaces = new ISymUnmanagedNamespace[count];

            m_reader.GetNamespaces(count, out count, unmanagedNamespaces);
            ISymbolNamespace[] namespaces = new SymNamespace[count];

            for (i = 0; i < count; i++)
            {
                namespaces[i] = new SymNamespace(unmanagedNamespaces[i]);
            }
            return(namespaces);
        }
        public ISymbolNamespace[] GetNamespaces()
        {
            int count;

            m_target.GetNamespaces(0, out count, null);
            var uNamespaces = new ISymUnmanagedNamespace[count];

            m_target.GetNamespaces(count, out count, uNamespaces);

            int i;
            var namespaces = new ISymbolNamespace[count];

            for (i = 0; i < count; i++)
            {
                namespaces[i] = new SymNamespace(uNamespaces[i]);
            }
            return(namespaces);
        }
示例#3
0
        public ISymbolNamespace[] GetNamespaces()
        {
            uint i;
            int  cNamespaces = 0;

            m_unmanagedNamespace.GetNamespaces(0, out cNamespaces, null);
            var unmamagedNamespaces = new ISymUnmanagedNamespace[cNamespaces];

            m_unmanagedNamespace.GetNamespaces(cNamespaces, out cNamespaces, unmamagedNamespaces);

            var Namespaces = new ISymbolNamespace[cNamespaces];

            for (i = 0; i < cNamespaces; i++)
            {
                Namespaces[i] = new SymNamespace(unmamagedNamespaces[i]);
            }
            return(Namespaces);
        }