public static bool Comply(this ReportParameterInfoCollection source, object obj) { var temp1 = source.Any(p => p.Comply(obj)); var temp2 = source.All(p => p.Comply(obj)); return(temp1 && temp2); }