public int CompareTo(GenericSymbolCollection aOther)
        {
            int ret = 1;

            //
            if (aOther != null)
            {
                ret = string.Compare(HostBinaryFileName, aOther.HostBinaryFileName, true);
                //
                if (aOther is GenericSymbolCollection)
                {
                    GenericSymbolCollection otherCol = (GenericSymbolCollection)aOther;
                    //
                    if (BaseAddress == otherCol.BaseAddress)
                    {
                        ret = 0;
                    }
                    else if (BaseAddress > otherCol.BaseAddress)
                    {
                        ret = 1;
                    }
                    else
                    {
                        ret = -1;
                    }
                }
            }

            // Debug check
            if (aOther == this)
            {
                System.Diagnostics.Debug.Assert(ret == 0);
            }
            //
            return(ret);
        }
Ejemplo n.º 2
0
 protected GenericSymbol(GenericSymbolCollection aCollection)
 {
     iCollection = aCollection;
 }