pen*_*ake 4 .net c# linq extension-methods concat
我有2个实例:
Run Code Online (Sandbox Code Playgroud)foo and bar
他们的类型是:
foo.GetType().ToString()
Run Code Online (Sandbox Code Playgroud)
返回: System.Collections.Generic.List`1 [MyNameSpace.MyClass]
bar.GetType().ToString()
Run Code Online (Sandbox Code Playgroud)
返回: System.Collections.Generic.List`1 [MyNameSpace.MyClass]
当我将它们连接起来时:
var foobar = foo.Concat(bar);
Run Code Online (Sandbox Code Playgroud)
GetType()返回 System.Linq.Enumerable + d__71`1 [MyNameSpace.MyClass]
问题:这是什么意思?不应该是IEnumerable吗?