【发布时间】:2014-07-29 17:52:37
【问题描述】:
我发现了一个用C# 编写的开源操作系统的代码,我看到了以下检查:
if (String.Empty == null)
throw new Exception("Compiler didn't initialize System.String.Empty!");
这对我来说似乎是一个毫无意义的检查,但因为我在 操作系统的源代码中看到它,我想我可能遗漏了一些东西。 string.Empty 是否有可能为 null ?
注意:这里是source code,如果您有兴趣查看
【问题讨论】:
-
有些人只想看到世界燃烧