Accessing vaules using foreach ...

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Accessing vaules using foreach ...

 
0
  #1
Jul 18th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 40
Reputation: agent154 is an unknown quantity at this point 
Solved Threads: 1
agent154's Avatar
agent154 agent154 is offline Offline
Light Poster

Re: Accessing vaules using foreach ...

 
2
  #2
Jul 18th, 2009
Maybe this?
  1. foreach(string s in Enum.GetNames(typeof(Environment.SpecialFolder)))
  2. Console.WriteLine(s);
int count;
for (count =1; count<=500;count++)
printf("I will not throw paper airplanes in class.");
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Re: Accessing vaules using foreach ...

 
0
  #3
Jul 20th, 2009
Thanks that worked well.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Accessing vaules using foreach ...

 
0
  #4
Jul 20th, 2009
As you're online. Please mark it as solved.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 275 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC