示例#1
0
        public int ParseText(string pszCode, enum_PARSEFLAGS dwFlags, uint nRadix, out IDebugExpression2 ppExpr,
                             out string pbstrError, out uint pichError)
        {
            pbstrError = "";
            pichError  = 0;
            ppExpr     = null;
            string lookup = pszCode;


            LocalVariable result = frame.GetVisibleVariableByName(lookup);

            if (result != null)
            {
                ppExpr = new TrivialMonoExpression(new MonoProperty(frame, result));
                return(VSConstants.S_OK);
            }

            pbstrError = "Unsupported Expression";
            pichError  = (uint)pbstrError.Length;
            return(VSConstants.S_FALSE);
        }
示例#2
0
        public int ParseText(string pszCode, enum_PARSEFLAGS dwFlags, uint nRadix, out IDebugExpression2 ppExpr,
            out string pbstrError, out uint pichError)
        {
            pbstrError = "";
            pichError = 0;
            ppExpr = null;
            string lookup = pszCode;

            LocalVariable result = frame.GetVisibleVariableByName(lookup);
            if (result != null)
            {
                ppExpr = new TrivialMonoExpression(new MonoProperty(frame, result));
                return VSConstants.S_OK;
            }

            pbstrError = "Unsupported Expression";
            pichError = (uint) pbstrError.Length;
            return VSConstants.S_FALSE;
        }