Co jest lepsze? array, ArrayList lub List <T> (pod względem wydajności i szybkości)
Wymagam dużej szybkości przetwarzania mojej strony. Liczba dodawanych wartości będzie dynamiczna.
Który z powyższych jest preferowany? Wsparcie z uzasadnionego powodu.
Edytuj: np .:
string str = "a,b,c"; //Count of the number of elements in str is not fixed
string[] arr = str.Split(',');
lub,
ArrayList al = new ArrayList();
al.Add(str.Split(','));