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
Pitchaiyan Chidambaram
NA
3
3.6k
c# collection
Jul 23 2015 3:15 AM
Hi and hello everybody...
I am beginner to the c# collections , i can't understand the exact need of iEnumerable's advantages, if anybody gives the difference between the following two type of codes, would be great thing for me to understand what i need, thanks in advance guys...
Type1:
int[] integers = { 1, 9, 5, 3, 7, 2, 11, 23, 50, 41, 6, 8 };
IEnmerable<int> takeWhileNumber = integers.TakeWhile(num =>
num.CompareTo(50) != 0);
Type2:
int[] takeWhileNumber ;
int[] integers = { 1, 9, 5, 3, 7, 2, 11, 23, 50, 41, 6, 8 };
takeWhileNumber = integers.TakeWhile(num =>
num.CompareTo(50) != 0);
Reply
Answers (
1
)
modalpopupextender in masterpage asp .net c#
Confusion of access level of variables in static method.