var keys = [];
for(key in rep) {
keys.push(key);
this is in java script... what is equivalent to this in c#???Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Michal HabalcikPosted Dec 20, 2014, 4:48 AM
string[] keys = new string[]{"key1, key2, key3"};
foreach (var key in keys)
{
Console.WriteLine(key);
}