[C#] Get player object from all players in server

How do I loop through every single player on the server and get the player object out of it.

Using PlayerList https://github.com/citizenfx/fivem/blob/65aecbd731f23e983ee917da7a99046eae102c72/code/client/clrcore/PlayerList.cs

foreach(var player in new PlayerList()) {
    // Do something with Player object
}