Hi, Environment.SpecialFolder
, this returns a enum without having a public GetEnumerator();
,
, can u tell me how to access the values like by using foreach statement?
RahulV 16 Junior Poster in Training
Recommended Answers
Jump to PostMaybe this?
foreach(string s in Enum.GetNames(typeof(Environment.SpecialFolder))) Console.WriteLine(s);
All 3 Replies
agent154 19 Junior Poster in Training
ddanbe commented: Nice! +7
sknake commented: great answer & welcome to daniweb +4
RahulV 16 Junior Poster in Training
Ramy Mahrous 401 Postaholic Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.