Ejemplo n.º 1
0
        public CorValue GetFieldValue(CorClass managedClass, int fieldToken)
        {
            ICorDebugValue val;

            m_objVal.GetFieldValue(managedClass.m_class, (uint)fieldToken, out val);
            return(new CorValue(val));
        }
Ejemplo n.º 2
0
        /** Result of the evaluation.  Valid only after the eval is complete. */

        /** Create a Value to use it in a Function Evaluation. */

        public CorValue CreateValue(CorElementType type, CorClass managedClass)
        {
            ICorDebugValue v = null;

            m_eval.CreateValue(type, managedClass == null ? null : managedClass.m_class, out v);
            return((v == null) ? null : new CorValue(v));
        }
Ejemplo n.º 3
0
        public void NewArray(CorElementType type, CorClass managedClass, int rank,
                             int dimensions, int lowBounds)
        {
            var udims      = (uint)dimensions;
            var ulowBounds = (uint)lowBounds;

            m_eval.NewArray(type, managedClass.m_class, (uint)rank, ref udims, ref ulowBounds);
        }
Ejemplo n.º 4
0
        public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
        {
            ICorDebugType[] types       = null;
            int             typesLength = 0;
            var             eval2       = (ICorDebugEval2)m_eval;

            if (argumentTypes != null)
            {
                types = new ICorDebugType[argumentTypes.Length];
                for (int i = 0; i < argumentTypes.Length; i++)
                {
                    types[i] = argumentTypes[i].m_type;
                }
                typesLength = types.Length;
            }
            eval2.NewParameterizedObjectNoConstructor(managedClass.m_class, (uint)typesLength, types);
        }
 public CorValue GetFieldValue(CorClass managedClass, int fieldToken)
 {
     ICorDebugValue val;
     m_objVal.GetFieldValue(managedClass.m_class, (uint) fieldToken, out val);
     return new CorValue(val);
 }
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass,
                          ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_class = managedClass;
 }
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass)
     : base(appDomain)
 {
     m_class = managedClass;
 }
Ejemplo n.º 8
0
        /** Create an object w/o invoking its constructor. */

        public void NewObjectNoContstructor(CorClass c)
        {
            m_eval.NewObjectNoConstructor(c.m_class);
        }
Ejemplo n.º 9
0
        /** Result of the evaluation.  Valid only after the eval is complete. */

        /** Create a Value to use it in a Function Evaluation. */

        public CorValue CreateValue(CorElementType type, CorClass managedClass)
        {
            ICorDebugValue v = null;
            m_eval.CreateValue(type, managedClass == null ? null : managedClass.m_class, out v);
            return (v == null) ? null : new CorValue(v);
        }
Ejemplo n.º 10
0
 public void NewArray(CorElementType type, CorClass managedClass, int rank,
                      int dimensions, int lowBounds)
 {
     var udims = (uint) dimensions;
     var ulowBounds = (uint) lowBounds;
     m_eval.NewArray(type, managedClass.m_class, (uint) rank, ref udims, ref ulowBounds);
 }
Ejemplo n.º 11
0
        /** Create an object w/o invoking its constructor. */

        public void NewObjectNoContstructor(CorClass c)
        {
            m_eval.NewObjectNoConstructor(c.m_class);
        }
Ejemplo n.º 12
0
 public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
 {
     ICorDebugType[] types = null;
     int typesLength = 0;
     var eval2 = (ICorDebugEval2) m_eval;
     if (argumentTypes != null)
     {
         types = new ICorDebugType[argumentTypes.Length];
         for (int i = 0; i < argumentTypes.Length; i++)
             types[i] = argumentTypes[i].m_type;
         typesLength = types.Length;
     }
     eval2.NewParameterizedObjectNoConstructor(managedClass.m_class, (uint) typesLength, types);
 }