Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
FirstOrDefault operator in LINQ
Rushal Arora
11y
1.5k
1
Reply
int[] ar = new int[] { 1, 5, 2, 4, 7 };
var v = ar.First(x => x > 7);
MessageBox.Show(v.ToString());
It is not throwing any exception , why ?
i Want it to throw an exception but how?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Response.BinaryWrite error by LINQ
LINQ