How to pause for keystroke...

A

Aaron

In a console based application, I'd like to pause for a
keystroke. I thought Console.Read would do the trick, but
after it didn't I found this on the MSDN description of
the function:

Console.Read
This method will not return until the read operation is
terminated; for example, by the user pressing the enter
key.

I'd like the program to continue, no matter what key they
press. Thank you in advance.
 
A

Aaron

Hey,

I haven't gotten that far in my C# book lol. But I do
understand the concept. I have O'Reilly's Programming C#
by Jesse Liberty. Although the book is rather good, there
are a few things I don't like about it. She spends a lot
of time on certain subjects that I find are easy to
understand and not enough time on other subjects that are
little more involved. The most annoying aspects are some
of the example applications with show of the new features
she's explaining without any real example of real-world
application. Another annoying tidbit is that the chapter
on IO is one of the very last.

You recommend any other books? I find one book on a
programming language is never enough. ;)
 
G

Guest

Hi Aaron,

I would recommend Professional C# from Wrox.

PS: Jesse Liberty is a 'he' :)

HTH,
Rakesh Rajan
 
A

Aaron

Rakesh,

A 'he'? The 'Programming C#' book provides no clue as to
his gender. I do actually have a 'Teach Yourself C++ in 21
Days' book that he wrote; and upon reviewing the back
cover, I see that he is a 'he.' ;) Never really noticed.
Thanks!

I just finished reading the chapter on Delegates and
Events. Although I do like the book and overall the
explainations are thorough and easy to understand, the
book is sometimes very aggrivating. There are many cases
where he talks about syntax and certain aspects of how to
accomplish something using excerpts from a source which he
reveals serveral pages later. The issue, many of these
excerts are incorrect and don't match the source he later
uses; many instances where he fails to put colons or
parenthesis after a function, etc.

Thanks for the book recommendation; I'll definitely check
it out.
 
S

Sahil Malik

Yeah Jesse Liberty is a "he" ; bet he's pissed off when you call him a
"She".

Besides that - you are gonna have to read up about System.Threading
namespace - it ain't that tough - but I don't know any books off the top of
my head. Google for a sample.


--

- Sahil Malik
http://codebetter.com/blogs/sahil.malik/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top