这篇
Not everything derives from object - Fabulous Adventures In Coding - Site Home - MSDN Blogs文章讲了为什么在C#里面
var enumerable = from bool b in new int[] {1, 2} select b;
foreach (var element in enumerable)
{
Console.WriteLine(element);
}
这个可以编译通过,但是运行会抛exception。
转载于:https://www.cnblogs.com/fresky/archive/2012/07/17/2595261.html