public override bool Equals(object obj) { if (obj is string) obj = new StringObject((string)obj); var other = obj as StringObject; return Equals(other); }
public override bool Equals(object obj) { if (obj is string) { obj = new StringObject((string)obj); } var other = obj as StringObject; return(Equals(other)); }
public bool Equals(StringObject obj) { return s.Equals(obj.s); }
public bool Equals(StringObject obj) { return(s.Equals(obj.s)); }