public void NewParameterizedObject(ICorDebugFunction pConstructor, uint nTypeArgs, ref ICorDebugType ppTypeArgs, uint nArgs, ref ICorDebugValue ppArgs)
 {
     Interop.CorDebug.ICorDebugType  ref_ppTypeArgs = (ppTypeArgs == null)?null:ppTypeArgs.WrappedObject;
     Interop.CorDebug.ICorDebugValue ref_ppArgs     = (ppTypeArgs == null)?null:ppArgs.WrappedObject;
     this.WrappedObject.NewParameterizedObject(pConstructor.WrappedObject, nTypeArgs, ref ref_ppTypeArgs, nArgs, ref ref_ppArgs);
     ppTypeArgs = ICorDebugType.Wrap(ref_ppTypeArgs);
     ppArgs     = ICorDebugValue.Wrap(ref_ppArgs);
 }
Example #2
0
        public ICorDebugValue GetStaticFieldValue(uint fieldDef, Wrappers.CorDebug.ICorDebugFrame pFrame)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetStaticFieldValue(fieldDef, pFrame.WrappedObject, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
Example #3
0
        public ICorDebugValue DereferenceStrong()
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.DereferenceStrong(out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        public ICorDebugValue GetFieldValue(ICorDebugClass pClass, uint fieldDef)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetFieldValue(pClass.WrappedObject, fieldDef, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
Example #5
0
        public ICorDebugValue GetGlobalVariableValue(uint fieldDef)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetGlobalVariableValue(fieldDef, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
Example #6
0
        public ICorDebugValue GetStackValue(uint dwIndex)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetStackValue(dwIndex, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        public ICorDebugValue CreateValueForType(ICorDebugType pType)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.CreateValueForType(pType.WrappedObject, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        public ICorDebugValue GetElementAtPosition(uint nPosition)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetElementAtPosition(nPosition, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        public ICorDebugValue GetElement(uint cdim, System.IntPtr indices)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetElement(cdim, indices, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
Example #10
0
        public ICorDebugValue CreateValue(uint elementType, ICorDebugClass pElementClass)
        {
            ICorDebugValue ppValue;

            Interop.CorDebug.ICorDebugValue out_ppValue;
            if (pElementClass != null)
            {
                this.WrappedObject.CreateValue(elementType, pElementClass.WrappedObject, out out_ppValue);
            }
            else
            {
                this.WrappedObject.CreateValue(elementType, null, out out_ppValue);
            }
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        /*public void CallParameterizedFunction(ICorDebugFunction pFunction, uint nTypeArgs, ref ICorDebugType ppTypeArgs, uint nArgs, ref ICorDebugValue ppArgs)
         * {
         *      Debugger.Interop.CorDebug.ICorDebugType ref_ppTypeArgs = ppTypeArgs.WrappedObject;
         *      Debugger.Interop.CorDebug.ICorDebugValue ref_ppArgs = ppArgs.WrappedObject;
         *      this.WrappedObject.CallParameterizedFunction(pFunction.WrappedObject, nTypeArgs, ref ref_ppTypeArgs, nArgs, ref ref_ppArgs);
         *      ppTypeArgs = ICorDebugType.Wrap(ref_ppTypeArgs);
         *      ppArgs = ICorDebugValue.Wrap(ref_ppArgs);
         * }*/

        public void CallParameterizedFunction(ICorDebugFunction pFunction, uint nTypeArgs, ICorDebugType[] ppTypeArgs, uint nArgs, ICorDebugValue[] ppArgs)
        {
            Interop.CorDebug.ICorDebugType[] array_ppTypeArgs = new Interop.CorDebug.ICorDebugType[ppTypeArgs.Length];
            for (int i = 0; (i < ppTypeArgs.Length); i = (i + 1))
            {
                if ((ppTypeArgs[i] != null))
                {
                    array_ppTypeArgs[i] = ppTypeArgs[i].WrappedObject;
                }
            }
            Interop.CorDebug.ICorDebugValue[] array_ppArgs = new Interop.CorDebug.ICorDebugValue[ppArgs.Length];
            for (int i = 0; (i < ppArgs.Length); i = (i + 1))
            {
                if ((ppArgs[i] != null))
                {
                    array_ppArgs[i] = ppArgs[i].WrappedObject;
                }
            }
            this.WrappedObject.CallParameterizedFunction(pFunction.WrappedObject, nTypeArgs, array_ppTypeArgs, nArgs, array_ppArgs);
            for (int i = 0; (i < ppTypeArgs.Length); i = (i + 1))
            {
                if ((array_ppTypeArgs[i] != null))
                {
                    ppTypeArgs[i] = ICorDebugType.Wrap(array_ppTypeArgs[i]);
                }
                else
                {
                    ppTypeArgs[i] = null;
                }
            }
            for (int i = 0; (i < ppArgs.Length); i = (i + 1))
            {
                if ((array_ppArgs[i] != null))
                {
                    ppArgs[i] = ICorDebugValue.Wrap(array_ppArgs[i]);
                }
                else
                {
                    ppArgs[i] = null;
                }
            }
        }
Example #12
0
 public void NewObject(ICorDebugFunction pConstructor, uint nArgs, ref ICorDebugValue ppArgs)
 {
     Interop.CorDebug.ICorDebugValue ref_ppArgs = ppArgs.WrappedObject;
     this.WrappedObject.NewObject(pConstructor.WrappedObject, nArgs, ref ref_ppArgs);
     ppArgs = ICorDebugValue.Wrap(ref_ppArgs);
 }
        public override bool Equals(object o)
        {
            ICorDebugValue casted = o as ICorDebugValue;

            return((casted != null) && (casted.WrappedObject == wrappedObject));
        }