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);
 }
        public ICorDebugFunction GetVirtualMethod(uint memberRef)
        {
            ICorDebugFunction ppFunction;

            Interop.CorDebug.ICorDebugFunction out_ppFunction;
            this.WrappedObject.GetVirtualMethod(memberRef, out out_ppFunction);
            ppFunction = ICorDebugFunction.Wrap(out_ppFunction);
            return(ppFunction);
        }
Beispiel #3
0
        public ICorDebugFunction GetFunctionFromRVA(ulong rva)
        {
            ICorDebugFunction ppFunction;

            Interop.CorDebug.ICorDebugFunction out_ppFunction;
            this.WrappedObject.GetFunctionFromRVA(rva, out out_ppFunction);
            ppFunction = ICorDebugFunction.Wrap(out_ppFunction);
            return(ppFunction);
        }
Beispiel #4
0
        public ICorDebugFunction GetFunctionFromToken(uint methodDef)
        {
            ICorDebugFunction ppFunction;

            Interop.CorDebug.ICorDebugFunction out_ppFunction;
            this.WrappedObject.GetFunctionFromToken(methodDef, out out_ppFunction);
            ppFunction = ICorDebugFunction.Wrap(out_ppFunction);
            return(ppFunction);
        }
Beispiel #5
0
        public ICorDebugType GetVirtualMethodAndType(uint memberRef, out ICorDebugFunction ppFunction)
        {
            ICorDebugType ppType;

            Interop.CorDebug.ICorDebugFunction out_ppFunction;
            Interop.CorDebug.ICorDebugType     out_ppType;
            this.WrappedObject.GetVirtualMethodAndType(memberRef, out out_ppFunction, out out_ppType);
            ppFunction = ICorDebugFunction.Wrap(out_ppFunction);
            ppType     = ICorDebugType.Wrap(out_ppType);
            return(ppType);
        }
        /*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;
                }
            }
        }
Beispiel #7
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);
 }
Beispiel #8
0
		public override bool Equals(object o)
		{
			ICorDebugFunction casted = o as ICorDebugFunction;
			return (casted != null) && (casted.WrappedObject == wrappedObject);
		}