public void SimpleIsInstance() { object e = new EException(); Assert.IsTrue(e is EException); Assert.IsTrue(!(e is IsInstanceTest)); }
public void SimpleAsNull() { object e = new EException(); var e2 = e as NewException; Assert.IsTrue(null == e2); }
public void SimpleAsInstance() { object e = new EException(); var e2 = e as EException; Assert.IsTrue(null != e2); Assert.IsTrue(e == e2); }
public void InterfaceIsInstance() { object e = new NewException(); Assert.IsTrue(e is IExInterface); object f = new EException(); Assert.IsTrue(!(f is IExInterface)); }
public void RefenceCode() { object e = new EException(); if (e is Exception) { System.Console.WriteLine("a"); } else if (e is EException) { System.Console.WriteLine("b"); } }
public void SetException(EException exception) { m_task.m_exception = exception; m_task.m_state = (byte)State.Faulted; call_continuation(); }
void SetException(EException exception) { base.SetException(exception); }
protected void SetException(EException e) { m_exception = e; m_state = (byte)State.Faulted; call_continuation(); }