Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Photos | Blogs | E-Books | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article 
 Login Close
User Id:
Password:
 
Forgot Password
Forgot Username
Why Register
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
 Resources  
Close
 Our Network  
Close
Search :       Advanced Search »
Home » C# Language » Free Book: C# Programming for Beginners

Free Book: C# Programming for Beginners

In this book, you will learn how to write and compile C# programs, understand C# syntaxes, data types, control flow, classes and their members, interfaces, arrays, and exception handling. After completing this book, you should have a clear understanding of the purpose of C# language, it’s usages, and how to write C# programs.

Author Rank:
Technologies: .NET 1.0/1.1, .NET 2.0,Visual C# .NET
Total downloads : 12239
Total page views :  155348
Rating :
 4.82/5
This article has been rated :  11 times
   Print Read/Post comments Post a comment  Rate  
   Email to a friend  Bookmark  Similar Articles  Author's other articles  
Download Files:
CsharpProgramming.zip
 
ArticleAd
Become a Sponsor




Note: Download all "Download Files" to download the actual book. PDF Version is just the PDF version of this page.

 

Programming C# is a book (56 pages) written in step-by-step tutorial format for beginners and students who want to learn C# programming. It is recommended that you have some programming experience using any of the object-oriented languages such as C++, Pascal, or Java.

 

In this tutorial, you will learn how to write and compile C# programs, understand C# syntaxes, data types, control flow, classes and their members, interfaces, arrays, and exception handling. After completing this tutorial, you should have a clear understanding of the purpose of C# language, it's usages, and how to write C# programs.

 

Visual Studio Express version: Free Download
If you do not have Visual Studio 2005 or 2008, first download this free version of Visual C# 2008 Express.

http://www.microsoft.com/express/vcsharp/

 

The current version of C# language is 3.0. This tutorial covers all versions of C# language including 1.0, 2.0, and 3.0. The features added in versions 2.0 and 3.0 are covered in the Advanced Topics of this tutorial.

 

Download the entire book (56 pages) by clicking on Download Files link.

 

Table of Contents

 

  1. Introduction
  2. C# Language Features
  3. C# Editors & IDEs
  4. C# Components
  5. Types
  6. Attributes
  7. Variables
  8. Constants
  9. Expressions and Operators
  10. Control Statements
  11. Classes
  12. Events
  13. Indexers
  14. Inheritance
  15. C# 2.0 Features
  16. C# 3.0 Features

 

Note: C# language 2.0 and 3.0 features will be updated in next version of this book.

 

Recommended Readings

 

If you plan to master C# programming, here are few good books you may want to read. 

 

 


Login to add your contents and source code to this article
 [Top] Rate this article
 About the author
 
Mahesh Chand
Mahesh is a software consultant, architect, author, MCP, MVP, and founder of C# Corner. He has over 13 years of experience building systems for Financial and Banking, Engineering & Architectural, Imaging, Construction, Biological & Pharmaceuticals, Healthcare and Education industries including Microsoft, Unisys, Barclay’s, Centocor (J&J), McGraw-Hill, Excelon, PMI, and University of Pennsylvania Hospital. Since year 2000, he is been working with, ASP.NET, SQL Server, C# and .NET. His latest experience and interest is Silverlight, WPF, WCF, XAML and .NET 3.5. If you need any consulting in ASP.NET, AJAX, WPF, WCF, or XAML, contact him at mahesh AT c-sharpcorner DOT com
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Boost the performance of your .NET applications
“ANTS Profiler took us straight to the specific areas of our code which were the cause of our performance issues." Terry Phillips, Sr. Developer, Harley-Davidson Dealer Systems. Download your free trial of ANTS Profiler.
Go.NET
Build custom interactive diagrams, network, workflow editors, flowcharts, or software design tools. Includes many predefined kinds of nodes, links, and basic shapes. Supports layers, scrolling, zooming, selection, drag-and-drop, clipboard, in-place editing, tooltips, grids, printing, overview window, palette. 100% implemented in C# as a managed .NET Control. Document/View/Tool architecture with many properties&events. Optional automatic layout.
Dundas Software
Dundas Chart for .NET is the most advanced .NET charting package available today.  With an extremely complete feature set, elegant architecture and easy implementation, Dundas Chart can quickly add advanced Charting functionality to enhance and transform ASP.NET and Windows Forms applications.  Whether you are implementing charting into internal projects, or building applications for clients, Dundas Chart offers advanced technology and advanced results to get the most out of data.
 
   Print Read/Post comments Post a comment  Rate  
   Email to a friend  Bookmark  Similar Articles  Author's other articles  
Download Files:
CsharpProgramming.zip
 
 Post a Feedback, Comment, or Question about this article
Subject:  
Comment:  
ArticleAd
Become a Sponsor
Latest Comments:
Subject Posted By Posted On
link to downloadsatish10/24/2007
I was unable to find the link to downlaod that book . So plz tell me where can i find that link .
Reply | Email | Delete | Modify | 
 
 
Re: link to downloadLuis11/14/2007
The download link is on the upper side, on the right!
Reply | Email | Delete | Modify | 
UsefulMohamed11/29/2007
Thanks for giving us a good article for reading basics.
Reply | Email | Delete | Modify | 
 
 
Re: UsefulMahesh4/2/2009
Here are some more beginner tutorials/books on different topics:
http://www.c-sharpcorner.com/Beginners/
Reply | Email | Delete | Modify | 
access the class in my projectvijay12/18/2007
hi i am new in ASP.NET with C# coding. i have written database connection coding in one class. how to call that in my project please help me.... Thank you by Vijay
Reply | Email | Delete | Modify | 
 
 
Re: access the class in my projectMahesh4/2/2009
Please post your not article related questions on Forums by clicking on forums link on the header.
Reply | Email | Delete | Modify | 
Thank you.Jai12/25/2007
Thanks Mahesh. This book seems to be a good start :).
Reply | Email | Delete | Modify | 
 
 
Re: Thank you.Mahesh4/2/2009
Here are some more beginner tutorials/books on different topics:
http://www.c-sharpcorner.com/Beginners/
Reply | Email | Delete | Modify | 
Link not workingGabriel1/29/2008
I'd love to have a look at the book please. Source file cannot be read.
Reply | Email | Delete | Modify | 
 
 
Re: Link not workingMahesh2/27/2008

Hi Gabriel,
Link is working fine. Are you still having download problem?

 

Reply | Email | Delete | Modify | 
Active Directory Queryingmadhu9/1/2008
can any one help in learning AD Quering
Reply | Email | Delete | Modify | 
 
 
Re: Active Directory QueryingMahesh9/20/2008

Post your question on the forums.

 

Reply | Email | Delete | Modify | 
My QueryBhavani9/26/2008
Hai i am beginner,I have uploaded the images into the database but i want to know How to retrive images from database table and displayed in asp.net datagrid? Please reply me as soon as possible
Reply | Email | Delete | Modify | 
 
 
Re: My QueryMahesh9/26/2008

Here are two articles that show how tor save image in Database in binary format and how to read it back from a database and convert it to an image.

Adding and retrieving Images from a SQL Server Table by Mamta M on Dec 20, 2005
This article describes the process to add and retrieve images from a SQL Server table using ADO.NET.
 
Storing Images into a Database by aghiondea2 on Dec 13, 2005
In order to provide your application with cool pictures you can employ two techniques (at least). One of them is that you can save the pictures in a folder and store the path to each one in a database or configuration file. The other one is to store the entire file into a database, along with its file name.
Reply | Email | Delete | Modify | 
 
Re: My QueryMahesh9/26/2008

Here is one more article:

http://www.shabdar.org/store-save-images-in-sql-server.html

Reply | Email | Delete | Modify | 
D