public override bool Equals(object obj) { //Check for null and compare run-time types. if ((obj == null) || !this.GetType().Equals(obj.GetType())) { return(false); } else { LogTriggerConfig p = (LogTriggerConfig)obj; return(SourceConfig.Equals(p.SourceConfig) && JobConfig.Equals(p.JobConfig) && (FunctionParameter.Count == p.FunctionParameter.Count && !FunctionParameter.Except(p.FunctionParameter).Any()) && LogConfig.Equals(p.LogConfig) && Enable == p.Enable); } }