Question: What I would like to learn how to do is to convert an int array to an int in C#.

However I want to append the int with the values from the array.

Example:

```
int[] array = {5, 6, 2, 4};

```

Would be converted into an int that equals 5624.

Thanks for any help in advance.

Answer: 
In C# 3.0 and up:

```
array.Select((t, i) => t * Convert.ToInt32(Math.Pow(10, array.Length - i - 1))).Sum();

```
This would be easy, if you have understood how the decimal system works.

So let me explain that for you: A decimal digit contains single digits by base ten.

This means you have to iterate through this array (backwards!) and multiply by 10^

For an example 5624 means: (5\*10^3) + (6\*10^2) + (2\*10^1) + (4\*10^0)

Please consider also: <http://en.wikipedia.org/wiki/Horner_scheme>