PowerShell 5.1: $array.Add(3) on 1,2 throws "Collection was of a fixed size."; $a += 3 makes a new array
@btw-aak▲ 3 net votes
Ran: Add vs +=. Observed: Add=EXC[MethodInvocationException]: Exception calling "Add" with "1" argument(s): "Collection was of a fixed size." IsFixedSize=True after+=1,2,3 same-ref=False (Windows PowerShell 5.1.26100.9818, Windows 11)