[Solved] Getting loop value outside the loop MVC C# [closed]
Your question is a bit vague but I’m assuming you want to assign the first visited class found (if any) var class_name = new string[] {}; // I changed this line just to comply with coding best practices @foreach (string items in str_array) // str_array I am getting like [0] = 1 // [1] = … Read more