override protected bool derivedCompare(DLink pLinkA, DLink pLinkB) { Sound pDataA = (Sound)pLinkA; Sound pDataB = (Sound)pLinkB; bool status = false; if (pDataA.GetName() == pDataB.GetName()) { status = true; } return(status); }
protected override bool derivedCompare(DLink pLinkA, DLink pLinkB) { //This is called by baseFind Debug.Assert(pLinkA != null); Debug.Assert(pLinkB != null); //Cast to type Sound pDataA = (Sound)pLinkA; Sound pDataB = (Sound)pLinkB; // result of comparison, expression results a bool return(pDataA.GetName() == pDataB.GetName()); }