C# key collection to string code example
Example: .net core convert keycollection to array
string[] keys = new string[dictionary.Keys.Count];
dictionary.Keys.CopyTo(keys, 0);
string[] keys = new string[dictionary.Keys.Count];
dictionary.Keys.CopyTo(keys, 0);