In our professor's example code he has one snippet that looks like this:
if (name == null || name == "")
throw new ArgumentException("name is null or empty");
And another snippet that looks like this:
if (!File.Exists(name))
{
throw new Exception("File does not exist!");
}
I was just wondering what the different was and why one is used above the other