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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
sub query
Gomathi Palaniswamy
Aug 20, 2011
9.1
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
How To Use The SQL Query In LINQ