public void Dump() { //this.MLinkDump(); // we are using HASH code as its unique identifier Debug.WriteLine(" {0} ({1})", this.name, this.GetHashCode()); if (this.pMNext == null) { Debug.WriteLine(" next: null"); } else { TimerEvent pTmp = (TimerEvent)this.pMNext; Debug.WriteLine(" next: {0} ({1})", pTmp.GetName(), pTmp.GetHashCode()); } if (this.pMPrev == null) { Debug.WriteLine(" prev: null"); } else { TimerEvent pTmp = (TimerEvent)this.pMPrev; Debug.WriteLine(" prev: {0} ({1})", pTmp.GetName(), pTmp.GetHashCode()); } // Data: Debug.WriteLine(" Command: {0}", this.pCommand); Debug.WriteLine(" Event Name: {0}", this.name); Debug.WriteLine(" Trigger Time: {0}", this.triggerTime); Debug.WriteLine(" Delta Time: {0}", this.deltaTime); }
override protected Boolean DerivedCompare(DLink pLinkA, DLink pLinkB) { // This is used in baseFind() Debug.Assert(pLinkA != null); Debug.Assert(pLinkB != null); TimerEvent pDataA = (TimerEvent)pLinkA; TimerEvent pDataB = (TimerEvent)pLinkB; return(pDataA.GetName() == pDataB.GetName()); }
override protected Boolean derivedCompareNodes(MLink pLinkA, MLink pLinkB) { // This is used in baseFind() Debug.Assert(pLinkA != null); Debug.Assert(pLinkB != null); TimerEvent pDataA = (TimerEvent)pLinkA; TimerEvent pDataB = (TimerEvent)pLinkB; Boolean status = false; if (pDataA.GetName() == pDataB.GetName()) { status = true; } return(status); }