TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cassie Mod
NA
488
71.2k
a function to return values from a list
Feb 13 2017 8:39 AM
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
Reply
Answers (
4
)
Server cannot set status after HTTP headers have been sent.
How to deploy angular 2 application in node server?