public int CompareTo(object obj) { AnyUriValue other = obj as AnyUriValue; if (other == null) { throw new ArgumentException(); } return(String.CompareOrdinal(Value, other.Value)); }
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); }