Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Professional C# 4.0 and .NET 4
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional C# 4.0 and .NET 4
This is the forum to discuss the Wrox book Professional C# 4.0 and .NET 4 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner; ISBN: 9780470502259
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 4.0 and .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 28th, 2010, 01:58 PM
Registered User
 
Join Date: Sep 2010
Location: North of Dallas 30 Miles
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Cool Difficult or Hard to read sections

Hello All,

I've read up to page 495 of Professional C# and .Net 4.0 over the last week. I will finish reading the book because I am learning the material.

I've found some sections to be difficult to read. Upto this point in the book the material has been very straight forward. Once I re-read the poorly written sections a few times, I was able to get the concepts and details. My gut feeling was the book was rushed to print without enough editing.

I did not keep up with the sections that were poorly written. Today, I tripped over some un-natural English that I think represents my concerns pg. 493:

"The method TakesAWhile() needs at least the number of milliseconds passed with the second argument to finish because of the Thread.Sleep() method:"

"at least the number of milliseconds" - what is the range? What is the most it can take?

"number of milliseconds with the second argument" - Ok. <pause for dramatic effect> The second parameter in the function TakesAWhile() is named "ms". "ms" is short for milliseconds. So does this mean the function takes two arguments representing milliseconds? Nope. Looking at the code it is clear the method takes two parameters one being a counter, one being milliseconds.

As I said before, I'll finish the 1000 pages remaining because I am learning. I can see where people would be put off by the sections that are not well written.
  #2 (permalink)  
Old September 30th, 2010, 04:45 PM
Wrox Author
Points: 1,163, Level: 13
Points: 1,163, Level: 13 Points: 1,163, Level: 13 Points: 1,163, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Sorry this is unclear.

Quote:
Originally Posted by DEvanRoberts View Post
"The method TakesAWhile() needs at least the number of milliseconds passed with the second argument to finish because of the Thread.Sleep() method:"

"at least the number of milliseconds" - what is the range? What is the most it can take?.
It's the second parameter of the method. The second parameter is used with a Thread.Sleep, so you can pass a value that is accepted from Thread.Sleep. This method accepts any positive integer value. Passing 3000 (as it is done in the following sample, the thread sleeps 3 seconds. If the value 7000 is passed, the thread sleeps for 7 seconds.

If it's of interest what the range for Thread.Sleep is (which is not relevant for the samples here), the MSDN documentation helps. Any positive Int32 value can be used up to Int32.MaxValue. For waiting an infinite time, Timeout.Infinite can be used. This is a constant for -1.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel
The Following User Says Thank You to ChristianNagel For This Useful Post:
DEvanRoberts (October 1st, 2010)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me, help me(Read information from hard disk) motnaichuoichin Visual C++ 2 September 15th, 2010 06:00 AM
How to read Hard Disk sequence number by Java? Edward King J2EE 1 September 19th, 2005 03:29 PM
The difficult part k0023382 Access 1 October 8th, 2004 03:37 AM
Eric it's too difficult eureka BOOK: ASP.NET Website Programming Problem-Design-Solution 2 September 10th, 2004 03:01 AM
Simple and Difficult too sumit1228 SQL Language 1 February 4th, 2004 08:42 PM



All times are GMT -4. The time now is 09:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.