Uno può spiegare il motivo per cui l'uscita di questo codice è solo 'ciao' e che cosa significa questo codice?
( 0, characterArray, 0, characterArray.Length );
L'output mostra:
L'array di caratteri è: ciao
Il codice seguente:
string string1 = hello there;
char[] characterArray = new char[ 5 ];
string1.CopyTo( 0, characterArray, 0, characterArray.Length );
Console.Write( \nThe character array is: );
for ( int i = 0; i < characterArray.Length; i++ )
Console.Write( characterArray[ i ] );