C#中从String[]数组转换到Int[]数组


string[] reserved=Configure.ReservedUserId.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);

int[] userIds=Array.ConvertAll(reserved, delegate(string s) { return int.Parse(s); }));

http://www.xuehi.com

你可能感兴趣的:(String)