Assuming you’re using .NET 3.5 or later (using System.Linq;):
string[] keys = dictionary.Keys.ToArray();
Otherwise, you will have to use the CopyTo method, or use a loop :
string[] keys = new string[dictionary.Keys.Count];
dictionary.Keys.CopyTo(keys, 0);