Tim Anderson's ITWriting

C# in Easy Steps

 

Want to reproduce this article?

If you would like to reproduce this article on your own publication or web site, please contact Tim Anderson .

picture of broken bottle

 

C# in Easy Steps

I've written an introductory book on C# programming. Here's the thinking behind the book.

This is not a review. I've written this book, and what I'm offering here is the rationale behind it. First, let me emphasize that this is a book for beginners. If you are already a programmer or developer, it is probably not for you.

I had several goals in writing this book.

First, I wanted the reader to be up and running with working applications as soon as possible. . This book follows a "by example" approach, and although it is a short book there are over a hundred example applications in it. The idea is that this is satisfying and motivating, and that readers learn by doing. Generally each example illustrates just one or two points. They are stripped down to bare essentials.

Second, although this is a beginner's book I wanted to do some justice to key programming concepts including object orientation. Chapter three covers language essentials, with such things as data types, casting, value types and reference types, and the role of the mysterious curly bracket. Chapter four introduces object orientation, explaining inheritance, overloading and overriding, static members, and object lifetime. Although these may seem difficult concepts for beginners, they are things that to my mind you need to know in order to make sense of building applications. The explanations are as simple as I can make them, and there are still lots of short examples.

Third, I'm mindful that the programmer today has instant access to a huge range of resources, starting with online help and continuing with the Internet. There's no point in trying to compete with these other resources. I've actually included guidance on how to use online help, and some tips on searching the Web. What a book can provide is a consistent course and guide, and a starting point for further learning and exploration. My aim is to build confidence through the many working examples.

This is a book about Windows programming with Visual Studio, not a pure C# tutorial. That means it includes an introduction to the key Visual Studio tools as well as C# programming. This makes sense to me since most people will be using these tools.

I've also included chapters on database programming and creating Internet applications with ASP.NET web forms. Again you could argue that these topics are too advanced for beginners. My thinking is that they are too important to ignore. So there is a simple introduction to ADO.NET, which is the database framework in Microsoft .NET, again with working examples. I've then shown how the same data can be displayed on a web site with ASP.NET. There are explanations of essential features such as code-behind, isPostBack and the Session object.

This is not a book for purists. It covers a wide range of topics, and it cannot possibly be comprehensive and detailed. On the other hand, if you work through the book and build all the examples you will have a good grasp both of programming essentials and of what you can do with today's Windows programming tools.

Finally, a few practical details. This book is in the Easy Steps series, which uses the idea of numbered steps with plentiful illustrations to enable readers to create the examples. Unlike early books in the series, C# in Easy Steps is in full colour throughout. It's modestly priced, and all the examples are available to download here.

How to buy C# in Easy Steps

C# in Easy Steps at Barnes and Noble

C# in Easy Steps at Amazon.co.uk

Copyright Tim Anderson 23rd August 2004. All rights reserved

Copyright ©2004 Tim Anderson


 
 
17 comments
Comment posted on 2010-08-12 12:24:10 by: rohit.
hiiiiiiii i m sale my niit books any body purchase it rply on my id rohit_sharma_0001@yahoo.in and give ur contact no.
Comment posted on 2010-03-09 14:03:13 by: SSENKATUKA HASSAN.
Hello thank you for your continued support,Am doing programing with visual studio 2008,i want you to help me and send for me ways how i can learn to code. Thank,if possible via my email address.
Comment posted on 2009-09-09 06:02:49 by: Anonymous.
what is the name of this book and from where i can get it.
plz. tell me as soon as early.

Comment posted on 2009-07-05 12:58:12 by: Charlie.
Microsoft has already released Visual C# 2008 and .NET 3.5. Will there be a new expanded edition of the cool "C# in Easy Steps" to reflect the latest version? I'm sure many readers would be eager to buy your new book, Mr. Tim Anderson. Thanks.
Comment posted on 2009-05-27 10:04:44 by: Rab Nawaz.
Kindly send me the soft copy of the book.
Comment posted on 2009-03-07 04:23:41 by: ebook resell.
I read this book Really this book is very easy to learn the c#. Program are very easy.
Comment posted on 2008-08-06 11:13:14 by: Hiren.v. Mehta.
i read this page. this is just creatiria i want to total programing of c#.
Comment posted on 2008-05-23 10:38:47 by: soumya.
sir,

i want a book with lots of practical examples in asp.net2.0 using c#.where can i get it????????

Comment posted on 2007-08-29 17:26:27 by: SAURABH RAHEJA.
i wanna learn c# programming right from the beginning i.e. from introduction of c# from niit slides itself in an easy manner
Comment posted on 2007-07-13 13:57:08 by: mohan kumar.
I am a student of NIIT.I want to know about c# programming.
Comment posted on 2007-04-18 10:07:13 by: Michael.
I hope that there is an e-book version of the said c# sharp book for beginners which is free of charge coz I really want to learn on a tight budget
Comment posted on 2006-06-17 19:23:53 by: Tim Anderson.
The ArrayList error is because the book was written with Visual Studio 2003, and you are using Visual Studio 2005. However you only need to make a small change. Amend the line:

using System.Collections.Generic;

to

using System.Collections;

or alternatively add this line after the other using ... statements.

Tim

Comment posted on 2006-06-17 19:21:55 by: Unknown.
Hi,

I like your book! I am using Visual Studio 2005 and I get the following error.

Error 1
The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?)

C:\Documents and Settings\Kip Dole.CHOZNL8W6A4YXGU\My Documents\Visual Studio 2005\Projects\chapter04\chapter04\testClass.cs

Comment posted on 2005-04-06 08:27:17 by: Tim Anderson.
Vinay,

I don't know how the book is distributed in India. You could try Amazon.com; or contact the publisher via the website http://www.ineasysteps.com

Tim

Comment posted on 2005-04-06 06:01:57 by: Vinay Krishan Tiwari.
Hi There,
Certainly! I need this book. But is it available in India
pl let me know-
Regards
Vinay

Comment posted on 2005-01-31 06:58:09 by: Tim Anderson.
Justin,

All the programs run. You can download the examples from here:

http://www.ineasysteps.com/downloads/CSharpCode.exe

The semi-colon is part of the C# language specification. Please read page 59 "Curly brackets and semi-colons".

The word "this" means "this instance of the object". See the note on page 31.

You can find an explanation of "if" on page 59.

I hope you find a book that works for you. You might be better off with Visual Basic as that has a slightly more English-like syntax.

Tim

Comment posted on 2005-01-31 00:42:07 by: Justin.
I purchased this book to learn to use the program but there are so many discrepancies between the code used in the book and what is recognized by the program it is almost useless. For example, the author instructs you to use ";" at the end of each line of code which is incorrect (at least in my version of the program). Other code problems including the author's use of "if" phrases, "this.", and many others make the beginning programs impossible to run as the author instructed.
I followed the directions from the beginning so I know it is not because I missed a step, perhaps the author wrote it using an outdated version of the program.
I'm going to go buy a different tutorial.

You are welcome to comment on this page. For your guidance, HTML is not supported and URLs will be displayed as plain text. Add your comment here:

Your name: 

Your email (optional - will not be displayed or made public):

Type this code:    

Your comment