I know that chars are wrappers around a string, but how would I declare an array able to change one of the characters in the string?
string myString = "Hello World!";
Console.WriteLine("This is what it's at the start : " + myString);
myString = myString.Replace("l", "x");
Console.WriteLine("nThis is what it's after the change : " + myString);
//This is what it's at the start : Hello World
//This is what it's after the change Hexxo Worxd
string myString = "Hello World!";
char[] Array = myString.ToCharArray();
Array[0] = 'X';
myString = "";
for (int i = 0; i < Array.Length; i++)
myString += (char)Array[i];
Console.WriteLine(myString);
// Output : Xello World!