示例#1
0
        public override bool Equals(object obj)
        {
            if (obj is string)
                obj = new StringObject((string)obj);

            var other = obj as StringObject;
            return Equals(other);
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj is string)
            {
                obj = new StringObject((string)obj);
            }

            var other = obj as StringObject;

            return(Equals(other));
        }
示例#3
0
 public bool Equals(StringObject obj)
 {
     return s.Equals(obj.s);
 }
示例#4
0
 public bool Equals(StringObject obj)
 {
     return(s.Equals(obj.s));
 }