namespace Db4OSeries { public class SimpleObject { public SimpleObject(string content) { Content = content; } public SimpleObject(SimpleObject obj) { Content = obj.Content; } public string Content { get;set; } public bool Equals(SimpleObject other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Content, Content); } public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; if (obj.GetType() != typeof (SimpleObject)) return false; return Equals((SimpleObject) obj); } public override int GetHashCode() { return (Content != null ? Content.GetHashCode() : 0); } } }