コード例 #1
0
ファイル: Eval.cs プロジェクト: windygu/Visual-NHibernate
        /** 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));
        }
コード例 #2
0
ファイル: Value.cs プロジェクト: DeanYQ/donet-debugger
        public CorValue GetFieldValue(CorClass managedClass, int fieldToken)
        {
            ICorDebugValue val;

            m_objVal.GetFieldValue(managedClass.m_class, (uint)fieldToken, out val);
            return(new CorValue(val));
        }
コード例 #3
0
ファイル: Eval.cs プロジェクト: windygu/Visual-NHibernate
        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);
        }
コード例 #4
0
ファイル: Eval.cs プロジェクト: windygu/Visual-NHibernate
        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);
        }
コード例 #5
0
ファイル: Debugger.cs プロジェクト: fedorw/monodevelop
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass,
     ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_class = managedClass;
 }
コード例 #6
0
ファイル: Debugger.cs プロジェクト: fedorw/monodevelop
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass)
     : base(appDomain)
 {
     m_class = managedClass;
 }
コード例 #7
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);
        }
コード例 #8
0
ファイル: Eval.cs プロジェクト: windygu/Visual-NHibernate
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor(c.m_class);
 }
コード例 #9
0
ファイル: Process.cs プロジェクト: xsword911/Cosmos
        // 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);
        }
コード例 #10
0
ファイル: Value.cs プロジェクト: Gravecorp/ipydbg
 public CorValue GetFieldValue(CorClass managedClass,int fieldToken)
 {
     ICorDebugValue val;
     m_objVal.GetFieldValue(managedClass.m_class,(uint)fieldToken,out val);
     return new CorValue(val);
 }
コード例 #11
0
ファイル: StopReason.cs プロジェクト: Orvid/Cosmos
 /// <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;
 }
コード例 #12
0
ファイル: Eval.cs プロジェクト: jredville/ipydbg
 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);
 }
コード例 #13
0
ファイル: Eval.cs プロジェクト: jredville/ipydbg
 /** Create an object w/o invoking its constructor. */
 public void NewObjectNoContstructor(CorClass c)
 {
     m_eval.NewObjectNoConstructor (c.m_class);
 }
コード例 #14
0
ファイル: Eval.cs プロジェクト: jredville/ipydbg
 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);
 }
コード例 #15
0
ファイル: Eval.cs プロジェクト: jredville/ipydbg
 /** 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);
 }