System.Threading.ExecutionContextSwitcher.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool
        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);
        }