Esempio n. 1
0
        /** 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));
        }
Esempio n. 2
0
        public CorValue GetFieldValue(CorClass managedClass, int fieldToken)
        {
            ICorDebugValue val;

            m_objVal.GetFieldValue(managedClass.m_class, (uint)fieldToken, out val);
            return(new CorValue(val));
        }
Esempio n. 3
0
        public void NewArray(CorElementType type, CorClass managedClass, int rank,
                             int dimensions, int lowBounds)
        {
            uint udims      = (uint)dimensions;
            uint ulowBounds = (uint)lowBounds;

            m_eval.NewArray(type, managedClass.m_class, (uint)rank, ref udims, ref ulowBounds);
        }
Esempio n. 4
0
        public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
        {
            ICorDebugType[] types       = null;
            int             typesLength = 0;
            ICorDebugEval2  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);
        }
Esempio n. 5
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass,
     ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_class = managedClass;
 }
Esempio n. 6
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass)
     : base(appDomain)
 {
     m_class = managedClass;
 }
        // enable or disable custom notifications of a given type
        // Arguments: c - class for the type to be enabled/disabled
        //            value - true to enable, false to disable
        public void SetEnableCustomNotification(CorClass c, bool value)
        {
            ICorDebugProcess3 p3 = (ICorDebugProcess3)_p();

            p3.SetEnableCustomNotification(c.Raw, value ? 1 : 0);
        }
Esempio n. 8
0
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor(c.m_class);
 }
Esempio n. 9
0
        // enable or disable custom notifications of a given type
        // Arguments: c - class for the type to be enabled/disabled
        //            value - true to enable, false to disable
        public void SetEnableCustomNotification(CorClass c, bool value)
        {
            ICorDebugProcess3 p3 = (ICorDebugProcess3)_p();

            p3.SetEnableCustomNotification(c.Raw, value ? 1 : 0);
        }
Esempio n. 10
0
 public CorValue GetFieldValue(CorClass managedClass,int fieldToken)
 {
     ICorDebugValue val;
     m_objVal.GetFieldValue(managedClass.m_class,(uint)fieldToken,out val);
     return new CorValue(val);
 }
Esempio n. 11
0
 /// <summary>
 /// Create a new instance of the ClassLoadedStopReason class.
 /// </summary>
 /// <param name="managedClass">The class that has been loaded.</param>
 public ClassLoadedStopReason(CorClass managedClass)
 {
     Debug.Assert(managedClass != null);
     m_class = managedClass;
 }
Esempio n. 12
0
 public void NewParameterizedObjectNoConstructor(CorClass managedClass, CorType[] argumentTypes)
 {
     ICorDebugType[] types = null;
     int typesLength=0;
     ICorDebugEval2 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);
 }
Esempio n. 13
0
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor (c.m_class);
 }
Esempio n. 14
0
 public void NewArray(CorElementType type, CorClass managedClass, int rank, 
                       int dimensions, int lowBounds)
 {
     uint udims = (uint)dimensions;
     uint ulowBounds = (uint)lowBounds;
     m_eval.NewArray (type, managedClass.m_class, (uint)rank, ref udims, ref ulowBounds);
 }
Esempio n. 15
0
 /** 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);
 }