public override bool Equals(object obj) { if (obj == null || obj.GetType() != this.GetType()) return false; EventValue that = (EventValue)obj; return this.Id == that.Id; }