How to read a list in c# once its created

Code examples

11
0

c sharp list of strings

// Create a list of strings using 'new List<string>{}'
List<string> stringList = new List<string>{"string1", "string2"};
0
0

how to read a list in c# once its created

string res = stringlist[0];

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................