Category: C#

C#: The Basics

My image
  • Author: Vijay Mukhi, Sandeep Shanbhag, and Sonal Mukhi
  • Format: online HTML
  • Price: free

The book is written assuming no prior programming knowledge on the part of the readers. However, we make certain other assumptions that we shall explain now.

Many a times, on a clear night when we look up at the stars, we can’t help but wonder whether there is intelligent life out there – or are they just like us?

For we don’t believe that intellect is a quality that we are born with. In fact we are going to share a secret with you. It is the secret of success given to us by an old gypsy woman. This magic mantra has worked with many and we assume you would also use it in your life. In fact this is the only assumption we make in this book.

The secret is in persistence – nothing in the world can take place of persistence. Talent will not, nothing is more common than unsuccessful people with talent. Genius will not, unrewarded genius is almost a proverb. Education will not, the world is full of educated derelicts. Persistence and determination alone are omnipotent. We hope you agree with the old gypsy apply the maxim while learning C#.

Chapters include:

  • Getting Started
  • Namespaces
  • Constructors and Destructors
  • Components and Databases
  • Web Enabling Data
  • Function Overloading and Inheritance
  • Modifiers
  • Virtual Functions – new, override
  • Properties and Indexers
  • Interfaces and Structures
  • Operator Overloading
  • Collection Objects
  • Attributes, The Reflection API and Conditionals
  • Unsafe code

Data Structures and Algorithms with Object-Oriented Design Patterns in C#

  • Author: Bruno R. Preiss
  • Format: online HTML
  • Price: free

The primary goal of this book is to promote object-oriented design using C# and to illustrate the use of the emerging object-oriented design patterns. Experienced object-oriented programmers find that certain ways of doing things work best and that these ways occur over and over again. The book shows how these patterns are used to create good software designs. In particular, the following design patterns are used throughout the text: singleton, container, enumeration, adapter and visitor.

Virtually all of the data structures are presented in the context of a single, unified, polymorphic class hierarchy. This framework clearly shows the relationships between data structures and it illustrates how polymorphism and inheritance can be used effectively. In addition, algorithmic abstraction is used extensively when presenting classes of algorithms. By using algorithmic abstraction, it is possible to describe a generic algorithm without having to worry about the details of a particular concrete realization of that algorithm.

A secondary goal of the book is to present mathematical tools just in time. Analysis techniques and proofs are presented as needed and in the proper context. In the past when the topics in this book were taught at the graduate level, an author could rely on students having the needed background in mathematics. However, because the book is targeted for second- and third-year students, it is necessary to fill in the background as needed. To the extent possible without compromising correctness, the presentation fosters intuitive understanding of the concepts rather than mathematical rigor.

Chapters include:

  • Colophon
  • Dedication
  • Preface
  • Contents
  • Introduction
  • Algorithm Analysis
  • Asymptotic Notation
  • Foundational Data Structures
  • Data Types and Abstraction
  • Stacks, Queues, and Deques
  • Ordered Lists and Sorted Lists
  • Hashing, Hash Tables, and Scatter Tables
  • Trees
  • Search Trees
  • Heaps and Priority Queues
  • Sets, Multisets, and Partitions
  • Garbage Collection and the Other Kind of Heap
  • Algorithmic Patterns and Problem Solvers
  • Sorting Algorithms and Sorters
  • Graphs and Graph Algorithms
  • C# and Object-Oriented Programming
  • Class Hierarchy Diagrams
  • Character Codes
  • References

Read: Data Structures and Algorithms with Object-Oriented Design Patterns in C#

C# Tutorial

My image
  • Author: Hanspeter Mössenböck
  • Format: PDF
  • Price: free

This tutorial was given at the Microsoft .NET Crash Course in Cambridge on March 25-28, 2002. It is intended for programmers who are already familiar with Java or similar languages. It starts out with basic C# features such as types, expressions, statements and object-orientation and continues with more advanced features such as threads, attributes, namespaces and assemblies. It also provides a short glimpse into .NET’s base class library.

Contents include:

  • Part 1: Introduction to C#
  • Part 2: Advanced C#

31 Days of Refactoring

  • Author: Sean Chambers
  • Format: PDF
  • Price: free

Refactoring is an integral part of continually improving your code while it moves forward through time.  Without refactoring you accrue technical debt, forget what portions of code do and create code that is resistant to any form of testing. It is an easy concept to get started with and opens the door to much better  practices such as unit testing, shared code ownership and more reliable, bug-free code in general.
This is Sean Chambers’ 31 Days of Refactoring blog series converted into a handy e-book format.

Continue reading

Blackfish SQL Developers Guide

  • Author: Steven T. Shaughnessy, Jens Ole Lauridsen
  • Format: archived PDF
  • Price: free

Blackfish SQL is a high-performance, small-footprint, transactional database that  was originally implemented as an all-Java database called JDataStore. This is now called Blackfish SQL for Java.
Blackfish SQL was then ported from Java to C#. The C# implementation is called Blackfish SQL for Windows.

This book is intended for developers implementing Blackfish SQL database applications and system administrators responsible for installing, deploying, and maintaining Blackfish SQL databases.

A CodeGear Developer Network membership is needed in order to download the .zip file. Registration is free.

Chapters include:

  • Overview
  • System Architecture
  • Establishing Connections
  • Administering Blackfish SQL
  • Using Blackfish SQL Security
  • Using Stored Procedures and User Defined Functions
  • Using Triggers in Blackfish SQL Tables
  • Stored Procedures Reference
  • SQL Reference
  • Optimizing Blackfish SQL Applications
  • Deploying Blackfish SQL Database Applications
  • Troubleshooting

Sams Teach Yourself C# in 24 Hours

  • Author: James Foxall and Wendy Haro-Chun
  • Format: HTML
  • Price: free

This book provides readers with 24 structured lessons that provide a light, but thorough introduction to C#. The author moves beyond the pure syntax covered in existing books, to guide readers step-by-step through a cohesive presentation of the basics of C#.

Once the basics are understood, he shows the reader how to apply this knowledge to real-world Windows programming tasks using C#.

Each chapter contains exercises that reinforce the lessons learned. Tips, Notes, and Cautions provide additional advice from the authors on how to get up to speed and programming quickly with C#.

Sidebars provide the more experienced reader with tips that will ease their migration from Visual Basic 6 and Visual C++ to C#.

Chapters include:

  • Hour 1. A C# Programming Tour
  • Hour 2. Navigating C#
  • Hour 3. Understanding Objects and Collections
  • Hour 4. Understanding Events
  • Hour 5. Building Forms Part I
  • Hour 6. Building Forms Part II
  • Hour 7. Working with the Traditional Controls
  • Hour 8. Advanced Controls
  • Hour 9. Adding Menus and Toolbars to Forms
  • Hour 10. Drawing and Printing
  • Hour 11. Creating and Calling Methods
  • Hour 12. Using Constants, Data Types, Variables, and Arrays
  • Hour 13. Performing Arithmetic, String Manipulation, and Date/Time Adjustments
  • Hour 14. Making Decisions in C# Code
  • Hour 15. Looping for Efficiency
  • Hour 16. Debugging Your Code
  • Hour 17. Designing Objects Using Classes
  • Hour 18. Interacting with Users
  • Hour 19. Performing File Operations
  • Hour 20. Controlling Other Applications Using Automation
  • Hour 21. Working with a Database
  • Hour 22. Deploying a Solution
  • Hour 23. Introduction to Web Development
  • Hour 24. The 10,000-Foot View

Read: Sams Teach Yourself C# in 24 Hours

C# School: 14 lessons to get you started with C# and .NET

  • Author: Faraz Rasheed
  • Format: PDF (protected – no copying of text to clipboard)
  • Price: free

The book is divided in to three progressive levels. In the first beginner stage the author discusses the .Net Framework, C# Language Fundamentals and Object Oriented Programming.

In the second intermediate section he goes into depth with Object Oriented constructs such as inheritance, polymorphism, abstract classes, interfaces, structures, enumerations and exceptions.
In the third and final advanced section he delves into what is required to implement real world applications using C# with Base Libraries, focusing on topics such as Collections, Delegates, Events and Windows Programming with a number of control, as well as Data Access with ADO.Net, Threads and Streams.

Continue reading

C# in Detail

My image
  • Author: Jon Jagger
  • Format: archived HTML
  • Price: free

This is a two 90 minute presentation course, containing over 300 Powerpoint slides, created by Jon Jagger for the ACCU Spring 2001 Conference.

Jon Jagger has taught this course to Microsoft’s developers and trainers, and his course is now a part of Microsoft’s official training curricula.

Content of course includes:

  • Part 1: Value Types
  • Part 2: Reference Types

.NET Book Zero

My image
  • Author: Charles Petzold
  • Format: PDF and XPS, with downloadable source code
  • Price: free

This book is an introduction to C# and the Microsoft .NET Framework for programmers who have experience with C or C++.

Chapters include:

  • Why This Book?
  • Why .NET?
  • Runtimes and SDKs
  • Edit, Compile, Run, Disassemble
  • Strings and the Console
  • Primitive Data Types
  • Operators and Expressions
  • Selection and Iteration
  • The Stack and the Heap
  • Arrays
  • Methods and Fields
  • Exception Handling
  • Classes, Structures, and Objects
  • Instance Methods
  • Constructors
  • Concepts of Equality
  • Fields and Properties
  • Inheritance
  • Virtuality
  • Operator Overloading
  • Interfaces
  • Interoperability
  • Dates and Times
  • Events and Delegates
  • Files and Streams
  • String Theory
  • Generics
  • Nullable Types


My image
  • Author: Charles Carroll
  • Format: online HTML
  • Price: free

Covers programming in C# and at a beginners level.

Chapters include:

  • samples
  • lessons
  • basics
  • debugging
  • GDI+
  • databases
  • user controls
  • 3rd party libraries
  • server controls
  • speed optimizations
  • XML
  • web services
  • includes a number of free tools

Access this book on