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);
- }
- }
Ram PrasadPosted Aug 2, 2018, 10:33 PM
Karthik ChintalaPosted Aug 2, 2018, 4:23 AM
Pravat KumarPosted Aug 2, 2018, 12:48 AM
Jaish MathewsPosted Aug 2, 2018, 12:46 AM
Khaja MoizuddinPosted Aug 1, 2018, 11:51 PM