private static bool CsVisComaptiblewithClass(PropertyInfo[] properties, string[] firstrowofCsv) { try { if (firstrowofCsv.Count() == properties.Count() && ArrayUtility.CompareTwoArray(firstrowofCsv, properties)) { return(true); } return(false); } catch { return(false); } }