public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } Event @event = ( Event )o; return(PageId == @event.PageId && !(Io != null ?!Io.Equals(@event.Io) : @event.Io != null)); }