Esempio n. 1
0
        public ICorDebugValue CreateValue(uint elementType, ICorDebugClass pElementClass)
        {
            ICorDebugValue ppValue;

            Debugger.Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.CreateValue(elementType, pElementClass == null ? null : pElementClass.WrappedObject, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
        public ICorDebugValue GetFieldValue(ICorDebugClass pClass, uint fieldDef)
        {
            ICorDebugValue ppValue;

            Debugger.Interop.CorDebug.ICorDebugValue out_ppValue;
            this.WrappedObject.GetFieldValue(pClass.WrappedObject, fieldDef, out out_ppValue);
            ppValue = ICorDebugValue.Wrap(out_ppValue);
            return(ppValue);
        }
Esempio n. 3
0
        public ICorDebugClass GetClassFromToken(uint typeDef)
        {
            ICorDebugClass ppClass;

            Debugger.Interop.CorDebug.ICorDebugClass out_ppClass;
            this.WrappedObject.GetClassFromToken(typeDef, out out_ppClass);
            ppClass = ICorDebugClass.Wrap(out_ppClass);
            return(ppClass);
        }
        public ICorDebugValue CreateValue(uint elementType, ICorDebugClass pElementClass)
        {
            ICorDebugValue ppValue;

            Debugger.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 NewParameterizedObjectNoConstructor(ICorDebugClass pClass, uint nTypeArgs, ref ICorDebugType ppTypeArgs)
         * {
         *      Debugger.Interop.CorDebug.ICorDebugType ref_ppTypeArgs = ppTypeArgs.WrappedObject;
         *      this.WrappedObject.NewParameterizedObjectNoConstructor(pClass.WrappedObject, nTypeArgs, ref ref_ppTypeArgs);
         *      ppTypeArgs = ICorDebugType.Wrap(ref_ppTypeArgs);
         * }*/

        public void NewParameterizedObjectNoConstructor(ICorDebugClass pClass, uint nTypeArgs, ICorDebugType[] ppTypeArgs)
        {
            Debugger.Interop.CorDebug.ICorDebugType[] array_ppTypeArgs = new Debugger.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;
                }
            }
            this.WrappedObject.NewParameterizedObjectNoConstructor(pClass.WrappedObject, nTypeArgs, array_ppTypeArgs);
            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;
                }
            }
        }
 public void NewArray(uint elementType, ICorDebugClass pElementClass, uint rank, ref uint dims, ref uint lowBounds)
 {
     this.WrappedObject.NewArray(elementType, pElementClass.WrappedObject, rank, ref dims, ref lowBounds);
 }
 public void NewObjectNoConstructor(ICorDebugClass pClass)
 {
     this.WrappedObject.NewObjectNoConstructor(pClass.WrappedObject);
 }
        public override bool Equals(object o)
        {
            ICorDebugClass casted = o as ICorDebugClass;

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