public override bool Equals(Object obj)
{
if (obj == null || !(obj is ExecutionContextSwitcher))
return false;
ExecutionContextSwitcher sw = (ExecutionContextSwitcher)obj;
return (this.prevEC == sw.prevEC && this.currEC == sw.currEC && this.scsw == sw.scsw &&
this.sysw == sw.sysw && this.hecsw == sw.hecsw && this.thread == sw.thread);
}