【发布时间】:2012-08-24 08:17:15
【问题描述】:
AsEnumerable 正在将某物转换为某物(通用与否)。
如下图:
我想知道 AsEnumerable 如何将字符串数组转换为 string[] 而将 DataTable 转换为 EnumerableRowCollection<DataRow> ?
【问题讨论】:
-
你确定
ver不是通过调用this method产生的吗?因为ear是通过调用this other method产生的。 -
这是因为它们是不同的扩展方法——一种用于数据表,另一种用于可枚举
标签: c#