Sign in
Google apps
Main menu
Post a Comment On:
Blogpad
"Convert IEnumerable of String to Int"
No comments yet. -
1 – 0 of 0
Code
// ids is an IEnumerable of String
var integers = ids.Select(x => int.Parse(x));
// to convert and sort at the same time:
var sortedIds = ids.Select(x => int.Parse(x)).OrderBy(x => x));
posted by fc at
4:00 PM
on Sep 27, 2011
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
This blog does not allow anonymous comments.
Google Account
You will be asked to sign in after submitting your comment.
Please prove you're not a robot
"Convert IEnumerable of String to Int"
No comments yet. -