Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
how to get first item in List in c#

Solved 1 Answers 31 Views Programming
0 1
I am working on c#. I need to get first item in List<string>. Can you help me with the same?

1 Answer

0
Best answer
0
You can try something like this.

 

IList listone = new ArrayList();
listone.Add(new object());
Object ob=listone[0];
answered by (151 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...