コード例 #1
0
        public int Next(out IMDThread ppThread)
        {
            if (m_curr < m_threads.Count)
            {
                ppThread = new MDThread(m_threads[m_curr++]);
                return(HRESULTS.S_OK);
            }
            else if (m_curr == m_threads.Count)
            {
                m_curr++;
                ppThread = null;
                return(HRESULTS.S_FALSE);
            }

            ppThread = null;
            return(HRESULTS.E_FAIL);
        }
コード例 #2
0
 public void GetFieldAddress(IMDAppDomain appDomain, IMDThread thread, out ulong pAddress)
 {
     pAddress = m_field.GetFieldAddress((ClrAppDomain)appDomain, (ClrThread)thread);
 }
コード例 #3
0
        public void GetFieldValue(IMDAppDomain appDomain, IMDThread thread, out IMDValue ppValue)
        {
            object value = m_field.GetFieldValue((ClrAppDomain)appDomain, (ClrThread)thread);

            ppValue = new MDValue(value, m_field.ElementType);
        }
コード例 #4
0
 public void GetFieldAddress(IMDAppDomain appDomain, IMDThread thread, out ulong pAddress)
 {
     pAddress = m_field.GetFieldAddress((ClrAppDomain)appDomain, (ClrThread)thread);
 }
コード例 #5
0
 public void GetFieldValue(IMDAppDomain appDomain, IMDThread thread, out IMDValue ppValue)
 {
     object value = m_field.GetFieldValue((ClrAppDomain)appDomain, (ClrThread)thread);
     ppValue = new MDValue(value, m_field.ElementType);
 }
コード例 #6
0
        public int Next(out IMDThread ppThread)
        {
            if (m_curr < m_threads.Count)
            {
                ppThread = new MDThread(m_threads[m_curr++]);
                return HRESULTS.S_OK;
            }
            else if (m_curr == m_threads.Count)
            {
                m_curr++;
                ppThread = null;
                return HRESULTS.S_FALSE;
            }

            ppThread = null;
            return HRESULTS.E_FAIL;
        }