current source file

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Feb 2009
Posts: 55
Reputation: tintincute is an unknown quantity at this point 
Solved Threads: 0
tintincute tintincute is offline Offline
Junior Poster in Training

current source file

 
0
  #1
Apr 25th, 2009
hi
I'm doing an exercise from a book, where I created a project called "Example.cs".
When I wrote the code, here are the steps involve:
1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs,

2.Next, add the file to the project by pressing Add.

3. Next, type the example program into the Example.cs window and then save the file

4. Compile the program by selecting Build Solution from the Build menu.

5. Run the program by selecting Start Without Debugging from the Debug menu.

This is no problem until here. And below of the examples there is a note written like this:
As the preceding instructions show, compiling short sample programs using the IDE involves a number of steps. However, you don’t need to create a new project for each example program in this book. Instead, you can use the same C# project. Just delete the
current source file and add the new file.
Then recompile and run.


What does the "Just delete the current source file and add the new file" mean here? How can I do that?
Does that mean, I have to delete the code that I've wrote and rename the Example.cs and do the next exercise?

Thank you
regards
tintincute
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: current source file

 
0
  #2
Apr 26th, 2009
Or delete the Example.cs and repeat the steps to create new code file and paste the code into. Or simply replace existing code with new one.
Actually this is bad comment, ignore it!
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  
Join Date: Feb 2009
Posts: 55
Reputation: tintincute is an unknown quantity at this point 
Solved Threads: 0
tintincute tintincute is offline Offline
Junior Poster in Training

Re: current source file

 
0
  #3
Apr 26th, 2009
hi Ramy
thanks for the comment. So what I did is, I commented the old examples and just rename the class and add another example.
Regards
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: current source file

 
0
  #4
Apr 26th, 2009
OK, so 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 has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 373 | 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