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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Michal HabalcikRank #902 · 2.3K reputationPosted Dec 19, 2014, 11:48 PM EST
string[] keys = new string[]{"key1, key2, key3"};
foreach (var key in keys)
{
Console.WriteLine(key);
}