Ejemplo n.º 1
0
        public int CompareTo(ConditionalRegionChain other)
        {
            int result = IsDefault.CompareTo(other.IsDefault);

            if (result == 0)
            {
                result = Regions.Length - other.Regions.Length;
                if (result == 0)
                {
                    result = SpanStart - other.SpanStart;
                    if (result == 0)
                    {
                        return(SpanEnd - other.SpanEnd);
                    }
                }
            }

            return(result);
        }