예제 #1
0
        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);
        }
예제 #2
0
        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());
        }