I'm new to the .Net World and Powershell. I have the following code:
$e = "A","A","A","B","A","B","A","A"
write-output $e.Replace("B", "C")
it works and prints
A
A
A
C
A
C
A
A
But I cannot find a Replace Method for system.array only for system.string. Why is it working?