Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2010, 01:58 PM
Registered User
 
Join Date: Sep 2010
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.
 
Old September 30th, 2010, 04:45 PM
Wrox Author
 
Join Date: Sep 2010
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)





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





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