Beispiel #1
0
        public int CompareTo(object obj)
        {
            AnyUriValue other = obj as AnyUriValue;

            if (other == null)
            {
                throw new ArgumentException();
            }
            return(String.CompareOrdinal(Value, other.Value));
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            AnyUriValue other = obj as AnyUriValue;

            if (other != null)
            {
                return(Value == other.Value);
            }
            if (obj is String)
            {
                return(Value == obj.ToString());
            }
            return(false);
        }