There are two ways to do this: One way includes the duplicates in the result, the other doesn't.
Easy way:
int[] A = new int[] { 1, 2, 3, 4 };
int[] B = new int[] { 5, 6, 3, 2 };
List<int> combined = new List<int>();
combined.AddRange(A);
combined.AddRange(B);
combined.Sort();
int[] C = combined.ToArray();</int></int>
Harder way:
int[] A = new int[] { 1, 2, 3, 4 };
int[] B = new int[] { 5, 6, 3, 2 };
List<int> combined = new List<int>();
combined.AddRange(A);
foreach (int i in B)
{
if (!combined.Contains(i))
{
combined.Add(i);
}
}
combined.Sort();
int[] C = combined.ToArray();</int></int>