Beispiel #1
0
        public override bool Equals(object o)
        {
            DataString x = o as DataString;

            if (x == null)
            {
                return(false);
            }

            bool equals = this.value == x.value;

            return(equals);
        }
Beispiel #2
0
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }

            DataString x = obj as DataString;

            if (x != null)
            {
                return(this.value.CompareTo(x.value));
            }
            else
            {
                throw new ArgumentException("Object is not a DataString");
            }
        }