Se ho:Come si concatenano elenchi in C#?
List<string> myList1;
List<string> myList2;
myList1 = getMeAList();
// Checked myList1, it contains 4 strings
myList2 = getMeAnotherList();
// Checked myList2, it contains 6 strings
myList1.Concat(myList2);
// Checked mylist1, it contains 4 strings... why?
ho corse codice simile a questo in Visual Studio 2008 e impostare punti di interruzione dopo ogni esecuzione. Dopo myList1 = getMeAList();
, myList1
contiene quattro stringhe e ho premuto il pulsante più per accertarmi che non fossero tutti null.
Dopo myList2 = getMeAnotherList();
, myList2
contiene sei corde, e ho controllato per assicurarsi che essi non erano nulla ... Dopo myList1.Concat(myList2);
myList1 conteneva solo quattro corde. Perché?
Cos'è questo Utilizzato per i punti di interruzione di business? –