HI,
Ive got the following question. I already got this part working but i want to do it a more nice way.
now i get a customer witch contains a list of customers ( actually 1).
using a linq query i can get the firstname, lastname, adress wich are all strings.
Now i made this function so it won't be done in the form but on its businessLogic, but i'm kinda stuck. i;m doing something wrong here but can't figger out what.
public List<string, string, string> GetValuesBySelectedCustomer(List items)
{
// test
var firstname= items.Select(i => i.firstname).ToList();
var lastname= items.Select(i => i.lastname).ToList();
var street= items.Select(i => i.street).ToList();
return new List<string, string, string>{firstname, lastname, street};
}
I get the following error.
Using the generic type 'List<T>' requires 1 type arguments TestHarness C:\Users\climburg.deanone\Downloads\calender 2\TestHarness\Form1.cs 27 Active