Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Below is my VB.NET code which i required to convert to c#
VB.NET
Dim lsOTHEROPR as string() lsOTHEROPR(iArrCnt)(1)
Having confusion that how to use the (1) after the array index
strArray[index][1]
You can convert it into C# like this:
C#
string[] strArray = new [] { "str", "blah" }; Console.WriteLine(strArray[0][1]); // will return you 't'
That (1) returns the second character in the string that you select from array with lsOTHEROPR(iArrCnt).
(1)
lsOTHEROPR(iArrCnt)
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
strArray[index][1]this takes the second char in the string