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
Guest User
Tech Writer
357
121.1k
Understanding method meaning...
Jan 9 2013 4:24 PM
Given the following extension\utility\helper method
public
static
string
CommaSeparate<T, U>(
this
IEnumerable<T> source, Func<T, U> func)
{
return
string
.Join(
","
, source.Select(s => func(s).ToString()).ToArray()); }
Im having difficulty in understanding it easily\fully...
My concerns are:-
Why are both T and U needed after CommaSeperate and not just T?
How and why is the Select method mapping to the Func delegate func, by simply s => func(s) ?
Regards
Steve
Reply
Answers (
3
)
how to clearify datagridview rows
//// Filter in dataset c# DataView