【发布时间】:2011-01-18 08:59:54
【问题描述】:
什么可能是与以下代码等效的 LINQ?
string[] values = { "1", "hello", "true" };
Type[] types = { typeof(int), typeof(string), typeof(bool) };
object[] objects = new object[values.Length];
for (int i = 0; i < values.Length; i++)
{
objects[i] = Convert.ChangeType(values[i], types[i]);
}
【问题讨论】:
标签: c# linq collections join