问题:
Can you cast a List<int>
to List<string>
somehow?你能以某种方式将List<int>
为List<string>
吗?
I know I could loop through and .ToString() the thing, but a cast would be awesome.我知道我可以遍历和 .ToString() 的东西,但演员会很棒。
I'm in C# 2.0 (so no LINQ ).我在 C# 2.0 中(所以没有LINQ )。