power_settings_new

how to get first item in List<string> in c#

by
asked
0 votes
48 views
I am working on c#. I need to get first item in List<string>. Can you help me with the same?

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.

1 Answer

answered by (171 points)
selected by
0 votes
 
Best answer
You can try something like this.

 

IList listone = new ArrayList();
listone.Add(new object());
Object ob=listone[0];
add
...