Beispiel #1
0
        public ISymbolConstant[] GetConstants()
        {
            int count;

            ((ISymUnmanagedScope2)unmanagedScope).GetConstants(0, out count, null);
            ISymUnmanagedConstant[] uConstants = new ISymUnmanagedConstant[count];
            ((ISymUnmanagedScope2)unmanagedScope).GetConstants(count, out count, uConstants);

            int i;

            ISymbolConstant[] constants = new ISymbolConstant[count];
            for (i = 0; i < count; i++)
            {
                constants[i] = new SymbolConstant(uConstants[i]);
            }
            return(constants);
        }
Beispiel #2
0
        public ISymbolConstant[] GetConstants()
        {
            int count;
            ((ISymUnmanagedScope2)unmanagedScope).GetConstants(0, out count, null);
            ISymUnmanagedConstant[] uConstants = new ISymUnmanagedConstant[count];
            ((ISymUnmanagedScope2)unmanagedScope).GetConstants(count, out count, uConstants);

            int i;
            ISymbolConstant[] constants = new ISymbolConstant[count];
            for (i = 0; i < count; i++)
            {
                constants[i] = new SymbolConstant(uConstants[i]);
            }
            return constants;
        }