public Applicant CreateObject(string[] fields) { if (fields.Length < 4) { throw new ArgumentException($"4 values expected, actual: {fields.Length} "); } var name = _parser.ParseName(fields[0]); return(new Applicant() { LastName = name.Item1, FirstName = name.Item2, MiddleName = name.Item3, BirthDate = _parser.ParseDate(fields[1]), Email = _parser.ParseEmail(fields[2]), Phone = _parser.ParsePhone(fields[3]) }); }