Get value from string array index
I have following string [,] called School. It has values like:
[0,0] = Class1
[0,1] = Class1
[0,2] = Class1
[0,3] = Class1
[0,4] = Class2
[0,5] = Class2
[0,6] = Class3
All the Classes are in order. Like Class2 will come after Class1 and so
on. I need to know index of Class3. In above scenario it will be 6. First
part will always be 0. So i need only the second array value which is 6.
Is there easier way in C# to get that value?
No comments:
Post a Comment