1 var arrStr=ReceiveUsers.Split(new char[]{‘,‘,‘,‘},StringSplitOptions.RemoveEmptyEntries); 2 //C# 3.0下用此句 3 var arrInt= Array.ConvertAll<string, int>(arrStr, s => int.Parse(s)); 4 //C# 2.0下用此句 5 var arrInt= Array.ConvertAll<string, int>(arrStr, delegate (string s) { return int.Parse(s); } );