Exemple #1
0
        public void SetThread(CorThread thread)
        {
            if (thread == null)
            {
                throw new InvalidOperationException();
            }

            ICorDebugEval ce;
            int           hr = thread.RawObject.CreateEval(out ce);

            if (hr < 0 || ce == null)
            {
                throw new EvalException(hr, string.Format("Could not create an evaluator, HR=0x{0:X8}", hr));
            }
            this.thread = thread;
            this.eval   = new CorEval(ce);
        }
Exemple #2
0
 public bool Equals(CorEval other)
 {
     return(!ReferenceEquals(other, null) &&
            RawObject == other.RawObject);
 }