Convert Int List Into Integer

Posted by Kezzer on Stack Overflow See other posts from Stack Overflow or by Kezzer
Published on 2010-06-14T11:36:47Z Indexed on 2010/06/14 11:42 UTC
Read the original article Hit count: 236

Filed under:

This is a bit of an odd case I must admit, but I'm trying to find a succinct and elegant way of converting a List<int> into an actual int. For example, if my list contained entries 1, 2, and 3, then the final integer would be 123. The only other way I thought of doing it was converting the array to a string and then parsing the string.

Any hints?

© Stack Overflow or respective owner

Related posts about c#