COMMUNITY: How to properly ask a question on Forums
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
LIVE
CAREER
MEMBERS
JOBS
Training
sub query
Gomathi Palaniswamy
Aug 20, 2011
3.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Query with in a query
string[] array = { "How", "are", "you" };
IEnumerable<string> query =
array.OrderBy(m => m.Split().Last());
foreach (string i in query)
Console.WriteLine(i);
Console.ReadLine();
Output:
are
How
you
sub query
Next Recommended Reading
SingleOrDefault() Vs. FirstOrDefault() in LINQ Query
"