So it will optimize to do either a regular string comparison or a hashtable.
The take-way being, prefer switch over if because it will optimize as your code evolves.
So it will optimize to do either a regular string comparison or a hashtable.
The take-way being, prefer switch over if because it will optimize as your code evolves.