开发者

Converting Array Type in C# [duplicate]

开发者 https://www.devze.com 2023-03-10 21:17 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Convert string[] to int[] in one string of code using LINQ
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Convert string[] to int[] in one string of code using LINQ

I have an array of strings I want to c开发者_JAVA百科onvert it to array of int

is there any way to convert it directly without looping

I mean without use foreach, for , LINQ select statement, etc.

Any suggestion please.


Array.ConvertAll: http://msdn.microsoft.com/en-us/library/exc45z53.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消