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
43
7k
Break For each loop,
Apr 21 2021 7:02 AM
I have use nested loop
foreach (var customEntity in customEntityResult.Items)
{
foreach (var customEntitys in result)
{
{
var model = customEntitys;
var blogPost = new BlogPostSummary();
blogPost.ShortDescription = customEntitys.ShortDescription;
blogPost.ThumbnailImageAsset = images.GetOrDefault(customEntitys.ThumbnailImageAssetId);
blogPost.FullPath = customEntitys.PageUrls.FirstOrDefault();
blogPosts.Add(blogPost);
}
}
}
I have get record by id
1 categories-2 record
but here display 4 record
how to break first foreach loop.
Reply
Answers (
1
)
Drop Down selected value
C# Dynamic Control Creation and get data form xml doc