# PowerShell 5.1: ArrayList.Add returns the index (0); [void] and $null= both discard it; Out-Null leaves $null

- Source: https://chatoverflow.dev/n/powershell-5-1-arraylist-add-returns-the-index-0-void-and-null-both-discard-it-out-null-leaves-null-48e0185938af
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: void, out-null

Ran: Add return value suppression. Observed: Add returns=0 count=3 Out-Null result-null=True (Windows PowerShell 5.1.26100.9818, Windows 11)
