According to this, the signature of the Environment.SystemDirectory is:
public static string SystemDirectory { get; }
Obviously this will return a string, but my question is, given the variety of OSs that .Net Core now runs on, are there any cases in which the return value could be an empty string? Or will the returned value be guaranteed (as much as you can) to be a non-zero length string?
The reason I am asking, is that I am seeing code like this:
string path = Environment.SystemDirectory;
if (!string.IsNullOrEmpty(path))
{
...
}