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
Ram Prasad
NA
326
18.4k
variable for foreach loop
Aug 1 2018 11:35 PM
My current code kind of looks like code below (details excluded). I would like to capture the output of the for each loop into a variable so that I can use it further in the program. Please guide.
static
void
Main(
string
[] args)
{
foreach
(example)
{
if
(condition 1)
{
}
if
(condition 2)
{
}
if
(condition 3)
{ PrintServieChar();
}
Console.WriteLine(Environment.NewLine);
}
}
Reply
Answers (
5
)
code first from database
Async and Await in C#