public List <string> PeopleEmployeedWithinLocation_Structs(int amount) { LocationStruct location = new LocationStruct(); List <string> result = new List <string>(); InputDataStruct[] input = service.GetPersonsInBatchStructs(amount); DateTime now = DateTime.Now; for (int i = 0; i < input.Length; ++i) { ref InputDataStruct item = ref input[i]; if (now.Subtract(item.BirthDate).TotalDays > 18 * 365) { var employee = service.GetEmployeeStruct(item.EmployeeId); if (locationService.DistanceWithStruct(ref location, employee.Address) < 10.0) { string name = string.Format("{0} {1}", item.Firstname, item.Lastname); result.Add(name); } } }