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

CompareToEmpty() protected method

Compare a non-empty key (this) to an empty key (obj). The empty sequence always sorts either before all other values, or after all other values.
protected CompareToEmpty ( object obj ) : int
obj object
return int
        protected int CompareToEmpty(object obj)
        {
            XmlEmptySortKey that = obj as XmlEmptySortKey;
            Debug.Assert(that != null && !(this is XmlEmptySortKey));
            return that.IsEmptyGreatest ? -1 : 1;
        }