System.Xml.Xsl.Runtime.XmlSortKey.CompareTo C# (CSharp) Method

CompareTo() public abstract method

Base internal class is abstract and doesn't actually implement CompareTo; derived classes must do this.
public abstract CompareTo ( object that ) : int
that object
return int
        public abstract int CompareTo(object that);
    }

Usage Example

Example #1
0
        protected int BreakSortingTie(XmlSortKey that)
        {
            if (_nextKey != null)
            {
                // There are multiple keys, so break tie using next key
                Debug.Assert(_nextKey != null && that._nextKey != null);
                return(_nextKey.CompareTo(that._nextKey));
            }

            Debug.Assert(_priority != that._priority);
            return((_priority < that._priority) ? -1 : 1);
        }