Switch logic might be cleaner here

I rarely ever deal with switch statements in C#, but in this instance we’re just matching a single variable against a list of potential values, so “switch” seems a bit cleaner than “if”:


Also, a fun way to dynamically pull up a name would be to import the System namespace and calling Environment.UserName;

This will pull up the name that you used to log into windows. Not sure if it does the same on a mac though.

1 Like