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
Enumerable.Where method
Jun 15 2012 6:22 AM
Hi
Given the following code
List<string> fruits = new List<string>
{ "apple", "passionfruit", "banana", "mango", "orange", "blueberry", "grape", "strawberry"};
IEnumerable<string> query = fruits.Where(fruit => fruit.Length < 6);
Im having difficulty in matching this up to the actual Where method declaration as below:-
public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source,Func<TSource, bool> predicate
From what I can work out so far:-
IEnumerable<TSource> is IEnumerable<string> and the Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate, is the (fruit => fruit.Length < 6); Linq & Lambda part?
Regards
Steven
Reply
Answers (
6
)
how i can restrict a user to open silverliht form when user click on Hyperlink button in silverlight WCF RIA
video player in windows phone 7