public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || (o as PerformanceData) == null) { return(false); } var that = (PerformanceData)o; if (_eventTickCount != that._eventTickCount) { return(false); } if (CounterName != null ? !CounterName.Equals(that.CounterName) : that.CounterName != null) { return(false); } if (DeploymentId != null ? !DeploymentId.Equals(that.DeploymentId) : that.DeploymentId != null) { return(false); } if (Role != null ? !Role.Equals(that.Role) : that.Role != null) { return(false); } if (RoleInstance != null ? !RoleInstance.Equals(that.RoleInstance) : that.RoleInstance != null) { return(false); } return(true); }