問題:
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 )。