Example #1
0
        internal int CompareToCore(StateKey other)
        {
            if (ReferenceEquals(this, other))
            {
                return(0);
            }

            if (ReferenceEquals(null, other))
            {
                return(1);
            }

            return(string.Compare(Name, other.Name, StringComparison.OrdinalIgnoreCase));
        }
Example #2
0
        internal bool EqualsCore(StateKey other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase));
        }