C# Tutorial - Free EBook
C# Language

C# Ebook
VB.Net Ebook
Java


Deitel - C#, How To Program
Chapter 2 - Introduction to the Visual Studio .NET IDE
Download the pdf at Prentice-Hall.
Download the source code for the book at Deitel.

Topics include:
Visual Studio .NET Integrated Development Environment (IDE) Overview.
Menu Bar and Toolbar.
Visual Studio.
.NET Windows.
Using Help.
Simple Program: Displaying Text and an Image.


Murach - C#
Chapter 1 - Introduction to Visual Studio .NET
Download the pdf at Murach.
Download the source code for the book at Murach.

Topics include:
An introduction to the .NET Framework and Visual Studio .NET.
A tour of Visual Studio.
How to Test a Project.


O'Reilly - Learning C#
Chapter 2 - Getting Started with C#
View Online at O'Reilly.
Download the source code for the book at O'Reilly.

Topics include:
What's in a Program?
Your First Program: Hello World
Examining Your First Program


Addison - Windows Forms 2.0 Programming, 2nd Edition
Chapter 14 - Applications
View Online at Addison Wesley.

Topics include:
Application Lifetime
Application Context
Application Events
UI Thread Exceptions
Passing Command Line Arguments
Single-Instance Detection and Management
Multiple-SDI Applications
Single-MDI Applications
Settings


Sams - Teach Yourself C# in 21 Days
Chapter 3 - Storing Information with Variables in C#
View Online at InformIT.
Download the source code for the book at InformIT.

Topics include:
Variables
Using Variables
Understanding Your Computer's Memory
C# Data Types
Numeric Variable Types
Literals Versus Variables
Constants
Reference Types


Deitel - C#, How To Program
Chapter 3 - Introduction to C# Programming
Download the pdf at Prentice-Hall.
Download the source code for the book at Deitel.

Topics include:
Simple Program: Printing a Line of Text.
Another Simple Program: Adding Integers.
Memory Concepts.
Arithmetic.
Decision Making: Equality and Relational Operations.


Addison - Programming in the .NET Environment
Chapter 2 - The Type System
View Online at Addison Wesley or Download the pdf at Addison Wesley.
Download the source code for the book at Addison Wesley.

Topics include:
The Relationship Between Programming Languages and Type Systems. The Evolution of Type Systems. Programming Language-Specific Type Systems. The Design Challenge: Development of a Single Type System for Multiple Languages. CLR-Programming Language Interaction: An Overview. Elements of the CLR Type System. Value Types. Built-in Value Types. User-Defined Value Types. Reference Types. Object Types. Interface Types. Pointer Types. Example: User-Defined Object Type. Example: Use of Interfaces on Value Types. Assignment Compatibility. Nested Types. Visibility. Accessibility.


Prentice Hall - C# For Windows Programming
Chapter 1 - Visual Studio .NET and C#
View Online at Prentice Hall.

Topics include:
Visual Studio .NET and C#.
Building C# Applications.
C# Programming Elements - Arrays.
Attributes, Events, Indexers, Properties, and Versioning.
Boxing, Unboxing, and Unified Type System.
Classes, Structures, and Enum. Namespaces.
Predefined Types.
Statements.
Value and Reference Types.
Designer Variables.
Initializing Components.
The Event Handler.


Microsoft - C# Language Specifications
Chapter 3 - Basic Concepts
View Online at Microsoft.

Topics include:
Program Startup/Termination.
Declarations.
Members.
Member access.
Signatures and overloading.
Scopes.
Namespace and type names.


Microsoft - Visual C#.NET Deluxe Learning Edition-Version 2003
Chapter 3 - Writing Methods and Applying Scope
View Online at Microsoft.

Topics include:
Declaring Methods
Specifying the Method Declaration Syntax
Writing return Statements
Calling Methods
Specifying the Method Call Syntax
Understanding Scope
Creating Local Scope with a Method
Creating Class Scope with a Class
Overloading Identifiers
Writing and Calling Methods


Apress - Beginning C# Objects From Concepts to Code
Chapter 3 - Objects and Classes
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include:
What Is an Object?
State/Attributes/Data.
Behavior/Operations/Methods.
Classes.
Instantiation.
User-Defined Types and Reference Variables.
Objects As Attributes.
Composition.


Sams - Microsoft Visual C#.NET 2003 Kick Start
Chapter 3 - Object-Oriented Programming
View Online at InformIT.
Download the source code for the book at InformIT.

Topics include:
Creating Classes, Creating Objects, Using Access Modifiers, Creating Fields and Using Initializers, Creating Methods, Creating Properties, Read-only Properties, Creating Constructors, Creating Structs, Creating Static Members, Creating Static Fields, Creating Static Properties, Creating Destructors and Handling Garbage Collection, Overloading Methods, Overloading Operators, Creating Namespaces


Apress - Beginning C# Objects From Concepts to Code
Chapter 6 - Collections of Objects
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include:
What Are Collections?
Collections Are Defined by Classes.
Arrays As Simple Collections.
Multidimensional Arrays.
More Sophisticated Collection Types.
Inventing Our Own Collection Types.
Collections As Method Return Types.
Collections of Supertypes.


Addison - Understanding .NET - A Tutorial and Analysis
Chapter 4 - .NET Languages
View Online at Addison Wesley or Download the pdf at Addison Wesley.

Topics include:
C#.
C# Types.
C# Control Structures.
Visual Basic.NET.
VB.NET Types.
VB.NET Control Structures.
C++ with Managed Extensions.
Managed C++ Types.
Other Managed C++ Features.


Addison Wesley - C# Primer
Chapter 1 - Hello C#
Download the pdf at Addison Wesley.
Download the source code for the book at Addison Wesley.

Topics include:
Namespaces
Making a Statement
The string Type
A Value and Reference Types
The new expression
Garbage Collection
Dynamic Arrays: The ArrayList Collection Class
The Unified Type System
Shadow Boxing
Jagged Arrays
The Hashtable Container
Exception Handling


Sams - Microsoft Visual C# .NET 2003 Developer's Cookbook
Chapter 3 - Strings and Regular Expressions
View Online at Sams Publishing or Alternatively view a copy at Code Project.
Download the source code for the book at Sams Publishing.

Topics include:
Creating and Using String Objects.
Formatting Strings.
Accessing Individual String Characters.
Analyzing Character Attributes.
Case-Insensitive String Comparison.
Working with Substrings.
Using Verbatim String Syntax.
Choosing Between Constant and Mutable Strings.
Optimizing StringBuilder Performance.
Understanding Basic Regular Expression Syntax.
Validating User Input with Regular Expressions.
Replacing Substrings Using Regular Expressions.
Building a Regular Expression Library.


Microsoft - Inside C#
Chapter 10 - String Handling and Regular Expressions
View Online at Microsoft or Alternatively view a copy at Code Project.
Download the source code for the book at Microsoft.

Topics include:
String Formatting
Format Specifiers
Objects and ToString
Numeric String Parsing
Strings and DateTime
Encoding Strings
The StringBuilder Class
Splitting Strings
Extending Strings
String Interning
Regular Expressions
Match and MatchCollection
Groups and Captures
String-Modifying Expressions
Regular Expression Options
Compiling Regular Expressions


Murach - C#
Chapter 4 - Numeric and String Data
Download the pdf at Murach.
Download the source code for the book at Murach.

Topics include:
Built-in Value Types.
Strings.
Converting Data Types.
Scope and Enumerations.


Murach - C#
Chapter 5 - Control Structures
Download the pdf at Murach.
Download the source code for the book at Murach.

Topics include:
Boolean Expressions.
Conditional Statements.
Loops.


Murach - C#
Chapter 6 - Methods and Event Handlers
Download the pdf at Murach.
Download the source code for the book at Murach.

Topics include:
Coding and Calling Methods.
Events and Delegates.


Murach - C#
Chapter 7 - Exceptions and Data Validation
Download the pdf at Murach.
Download the source code for the book at Murach.

Topics include:
Exceptions.
Structured Exception Handling.
Data Validation.


O'Reilly - C# Cookbook
Chapter 8 - Regular Expressions
Download the pdf at O'Reilly.
Download the source code for the book at O'Reilly.

Topics include:
Enumerating Matches
Extracting Groups from a MatchCollection
Verifying the Syntax of a Regular Expression
Quickly Finding Only the Last Match in a String
Replacing Characters or Words in a String
Augmenting the Basic String Replacement Function
A Better Tokenizer
Compiling Regular Expressions
Counting Lines of Text
Returning the Entire Line in Which a Match Is Found
Finding a Particular Occurrence of a Match
Using Common Patterns
Documenting Your Regular Expressions


Microsoft - C# for Java Developers
Chapter 9 - Collections
View Online at Microsoft Press.

Topics include:
Indexers
Collection Interfaces
Basic Collections
Specialized Collections
The CollectionsUtil Class
Synchronization
Custom Collections


O'Reilly - Programming C#
Chapter 12 - Delegates and Events
Download the pdf at O'Reilly.
Download the source code for the book at Jesse Liberty O'Reilly & Associates 2003.

Topics include:
Delegates
Multicasting
Events
Retrieving Values from Multicast Delegates


Apress - A Programmer's Introduction to C#
Chapter 21 - Attributes
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include:
Using Attributes
Attribute Usage
Attribute Parameters
Reflecting on Attributes


Microsoft - Visual C# .NET Step by Step
Chapter 13 - Using Garbage Collection and Resource Management
View Online at Microsoft.

Topics include:
Garbage Collection
Resource Management


Apress - C# and the .NET Platform
Chapter 5 - Advanced C# Class Construction Techniques
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include:
Building a Custom Indexer
Overloading Operators
Understanding (and Using) Delegates
Understanding (and Using) Events
XML-Based Documentation
Viewing the Generated XML File
Visual Studio.NET Documentation Support


Apress - C# and the .NET Platform
Chapter 6 - Assemblies, Threads, and AppDomains
View Online at The Code Project.
Download the source code for the book at Apress.

Topics include:
An Overview of .NET Assemblies
Cross-Language Inheritance
Understanding Private Assemblies
Understanding Shared Assemblies
Understanding .NET Version Policies
The Administrator Configuration File
Understanding System.AppDomain


Apress - C# and the .NET Platform, Second Edition
Chapter 10 - Processes, AppDomains, Contexts, and Threads
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include:
Reviewing Processes and Threads Under Traditional Win32
Interacting with Processes Under the .NET Platform
Understanding the System.AppDomain Type
Understanding Context (or How Low Can You Go?)
Summarizing Processes, AppDomains, and Context
The Process/AppDomain/Context/Thread Relationship
Multithreaded Programming via Delegates
The System.Threading Namespace
Spawning Secondary Threads


Prentice Hall - Introduction to C# Using .NET
Chapter 18 - Interfaces and the .NET Framework
Download the pdf at Object Innovations.
Download the source code for the book at Object Innovations and its update here.

Topics include:
ArrayList
Collection Interfaces
User-Defined Objects
Copy Semantics and ICloneable
Copy Semantics in C#
Shallow Copy and Deep Copy
Comparing Objects
Sorting an Array
Implementing IComparable


Apress - Best Kept Secrets in .NET
Various Excerpts - Best Kept Secrets in .NET
Download the pdf at Apress.
Download the source code for the book at Apress.

Topics include Chapter 1 - Hidden Treasures in Visual Studio
  • Organizing Code Snippets
    Chapter 2 - Doing Windows Forms
  • Iterating Through the Controls on a Form
    Chapter 3 - Code Tricks
  • Obsolescing Your Code
    Chapter 4 - Much ADO
  • Viewing Datasets As XML

  • O'Reilly - Visual C# 2005, A Developer's Notebook
    Chapter 1 - C# 2.0
    Download the pdf at O'Reilly.

    Topics include:
    Create a Type-Safe List Using a Generic Collection
    Create Your Own Generic Collection
    Implement the Collection Interfaces
    Enumerate Using Generic Iterators
    Implement GetEnumerator with Complex Data Structures
    Simplify Your Code with Anonymous Methods
    Hide Designer Code with Partial Types
    Create Static Classes
    Express Null Values with Nullable Types
    Access Objects in the Global Namespace
    Limit Access Within Properties
    Gain Flexibility with Delegate Covariance and Contravariance


    Apress - A Programmer's Introduction to C# 2.0
    Chapter 27 - Nullable Types
    Download the pdf at Apress.
    Download the source code for the book at Apress.

    Topics include:
    C# Language Nullable Types
    SQL Language Differences and Similarities
    Design Guidelines


    Addison - C# Programming Language
    Chapter 19 - Introduction to C# 2.0
    Download the pdf at Addison Wesley.

    Topics include:
    Generics
    Anonymous Methods
    Iterators
    Partial Types