Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
2Activity
×

Table Of Contents

1-1 Object-Oriented Programming
1-2 C#: The OOP Language
1-3 The .NET Framework
1-3-1 CLR and Managed Code
1-3-2 MSIL and JIT
1-3-3 Metadata
1-3-4 Assemblies
1-3-5 Garbage Collection
1-3-6 Putting Things Together
1-3-7 ILASM and ILDASM
1-4 A First Look at the C# Code
1-4-1 The C# Code
1-4-2 The IL Code
1-4-3 The Manifest
1-4-4 Using the Library File
1-5 How to Get a Free C# Compiler
1-5-1-1 If You Have the Compiler without the IDE
1-5-1-2 If You Have the Visual Studio IDE
1-6 Comparison of C# and C++
1-7 The Features of C# 2005
1-8 The New Features of C# 3.0
Summary
2-1 The “Hello, World!” C# Program
2-1-1 Compiling and Running the Program
2-1-2 Comments
2-1-3 Class Declaration
2-1-4 The Main Method
2-1-5 Using the .NET Methods for Displaying Results
2-2 Using Directives
2-3 Using Local Variables
2-4 The Program Architecture
2-5 Qualifying Names
2-6 Common Conventions for Writing Code
2-7 Code Documentation
C# Data Types
3-1 Data Types
3-2 Built-in Data Types
3-3 Value Types
3-3-1 Variable Initialization
3-3-2 Default Values
3-4 Reference Types
3-4-1 The C# Reference Types
3-4-2 Boxing and Unboxing
3-5 Simple Data Types
3-6 Creating and Manipulating Arithmetic Expressions
3-6-1 The Basic Arithmetic Operators (+, –, *, /)
3-6-2 The Modulus Operator (%)
3-6-3 The Assignment Operators
3-6-4 Increment and Decrement Operators (++, ––)
3-6-5 Operator Associativity
3-6-6 How to Get the Type Name
3-6-7 Evaluating Expressions with Mixed Types
3-6-8 Adding a Suffix to Numeric Data
3-6-8-1 Real Types
3-6-8-2 Integral Types
3-6-9 Conversion between Types
3-7 The char Type
3-8 Formatting Results
3-8-1 The Currency Format
3-8-2 The Decimal Format
3-8-3 The Fixed-point Format
3-8-4 The General Format
3-8-5 The Numeric Format
3-8-6 The Scientific Format
3-8-7 The Hexadecimal Format
3-9 The Nullable Types
3-9-1 Using the Nullable Structure Properties
3-9-2 Using the ?? Operator
3-10 The string Type
3-10-1 String Expressions
3-10-2 String Operators
3-10-2-1 String Concatenation (+, +=)
3-10-2-2 Using the StringBuilder Class
3-10-2-3 The Equality Operator (==)
3-10-2-4 The [] Operator
3-10-2-5 The @ Symbol
3-11 Reading the Keyboard Input
3-12 Converting Strings to Numbers
3-12-1 Using the Convert Class
3-12-2 Using the Parse Method
4-1 Using Conditions
4-1-1 Relational Operators
4-1-2 Logical Operators
4-1-2-1 The Logical AND Operators (&&, &)
4-1-2-2 The Logical OR Operators (||, |)
4-1-2-3 The Logical NOT Operator (!)
4-1-2-4 The Bitwise Operators
4-2 The if-else Construct
4-2-1 Manipulating Characters
4-2-2 Nested if-else Statements
4-3 The switch Construct
4-6-1-3 Nesting Loops
4-6-2 The while Loop
4-6-3 The do-while Loop
4-6-4 Branching Statements
4-7 Arrays
4-7-1 One-Dimensional Arrays
4-7-2 Declaring and Initializing Arrays
4-9-5 Resizing an Array (Array.Resize)
4-10 The foreach Loop
5-1 Classes
5-1-1 Class Declaration
5-1-2 Field Initialization
5-1-3 Class Instantiation
5-2 Namespaces
5-2-1 Nesting Namespaces
5-2-2 The Namespace Alias Qualifier
5-3 Access Levels
5-4 Properties
5-4-1 Using Properties
5-4-2 Read-only Properties
5-4-3 Accessor Accessibility
5-5 Static Members and Static Classes
5-6 Constants
5-7 Constructors
5-7-1 Instance Constructors
5-7-1-1 Declaring Constructors
5-7-1-2 Using this
5-7-2 Private Constructors
5-7-3 Static Constructors
5-8 Read-only Fields
5-9 Inheritance
5-10 Destructors
5-11 Partial Classes
6-1 Function Members
6-2 Polymorphism
6-2-1 Virtual and Override Methods
6-4 Method Overloading
6-5 Passing Parameters to Methods
6-6 Various Ways to Pass Parameters to Methods
6-6-1 Using ref
6-6-2 Using out
6-6-3 Using params
6-7 Indexers
6-8 User-defined Operators
6-9 Overriding the ToString Method
7-1 Structs vs. Classes
7-2 Declaring and Using Structs
7-3 Passing Structs and Classes to Methods
7-4 Enumerations
7-4-1 Declaring Enumerations
7-4-2 Using Enumerations
7-4-3 Using .NET Methods with enums
7-5 Attributes
7-5-1 Attribute Parameters
7-5-2 The Conditional Attribute
7-5-3 Combining Attributes
7-5-4 Calling Native Functions
7-5-5 Emulating Unions
8-1 What Is an Interface?
8-2 Declaring an Interface
8-3 Interface Implementation
8-4 Explicit Interface Implementation
8-5 Using is to Test Types
8-6 Using as to Test Types
8-7 Hiding Members of the Base Class
8-8 Versioning
8-9 Hiding Interface Members
n Errors and exceptions
9-1 Errors and Exceptions
9-2 Throwing an Exception
9-3 Catching an Exception
9-3-1 Organizing the Handlers
9-3-2 Sequence of Events in Handling Exceptions
9-4 Expected Exceptions in File Processing
9-4-1 Reading Text Files
9-4-2 Writing and Appending Text Files
9-4-3 Expected Exceptions
9-5 The finally Block
9-5-1 The try-finally Statement
9-5-2 The try-catch-finally Statement
9-6 User-defined Exceptions
9-7 Rethrowing Exceptions
9-7-1 Rethrowing the Exception Back to Main
9-7-2 Rethrowing by the Handler Block
9-8 Using the StackTrace Property
10-1 What Is a Delegate?
10-2 Declaring Delegates
10-3 Creating a Delegate
10-4 Invoking the Delegate
10-5 Associating a Delegate with More Than One Method
10-6 Adding and Removing Delegates
10-6-1 Using .NET Methods to Add and Remove Delegates
10-7 Anonymous Methods
10-7-1 Outer Variables
10-7-2 Restrictions on Using Anonymous Methods
10-8 Covariance
10-9 Contravariance
10-10 Events
10-10-1 Using Events in Applications
n Collections classes
11-1 Collections Classes
11-2 The Stack Collection
11-2-1 Stack Members
11-3 The Queue Collection
11-3-1 Queue Members
11-4 The ArrayList Collection
11-4-1 ArrayList Members
11-5 The SortedList Collection
11-5-1 SortedList Members
11-6 The Hashtable Collection
11-6-1 Hashtable Members
11-7 Specialized Collections
11-7-1 The ListDictionary Collection
11-7-2 ListDictionary Members
11-8 The Linked List Collection
11-9 Using Enumerators
11-10 Iterators
11-10-1 The Iterator Blocks
11-10-2 The yield Statement
12-1 What Are Generics?
12-2 Using Generic Collections
12-3 List<T>
12-3-1 List<T> Members
12-4 Dictionary<TKey, TValue>
n IDictionary<TKey, TValue>
12-4-1 Dictionary<TKey, TValue> Members
12-5 LinkedList<T>
12-5-1 LinkedList<T> Members
12-5-2 LinkedListNode<T> Members
12-6 ICollection<T>
12-6-1 ICollection Members
12-7 IDictionary<TKey, TValue>
12-7-1 IDictionary Members
12-8 Creating Your Own Generic Classes
12-9 Generic Methods
12-9-1 Generic Methods inside Generic Classes
12-9-2 Overloading Generic Methods
12-10 Using the default Keyword
12-11 Using Constraints
12-11-1 Types of Constraints
12-11-2 When to Use Constraints
12-12 Generic Delegates
12-13 Generic Interfaces
12-14 Benefits of Using Generics
12-15 Limitations of Using Generics
13-1 Using the Integrated Development Environment
13-2 Starting a New Application
13-3 Creating and Using Console Applications
13-4 The Main Features of the IDE
13-4-1 The Solution Explorer
13-4-2 The Properties Window
13-4-3 The Error List Window
13-5 Compiling and Running Projects
13-6 Using an Existing Application
13-7 Creating and Using Library Projects
13-8 Windows Application Projects
13-8-1 Switching between Design and Code Views
13-8-2 Creating a Simple Windows Application
13-8-3 Using More Than One Form in the Windows
13-9 Web Site Applications
13-9-1 Creating a Simple Web Site Application
13-10 Other Project Templates
13-11 Features of the Code Editor
13-11-1 IntelliSense
13-11-2 Code Snippets
13-11-2-1 Insert Snippet
13-11-2-2 Surround With
13-11-2-3 Refactor
14-1 Installing C# 3.0
14-1-1 Using the Command Line
14-1-2 Installing Visual Studio (Orcas)
14-2 Implicitly Typed Local Variables
14-2-1 Examine the Assembly
14-3 Object Initializers
14-3-1 Initializing Collections
14-4 Extension Methods
14-5 Anonymous Types
14-5-1 Using Multiple Anonymous Types
14-6 Implicitly Typed Arrays
14-7 Lambda Expressions
14-7-1 Using Anonymous Methods in C# 2.0
14-7-2 Using Lambda Expressions in C# 3.0
14-7-3 Using Two Arguments in a Lambda Expression
14-8 Func Delegate Types
14-9 Query Expressions
14-10 Expression Trees
Index
0 of .
Results for:
No results containing your search query
P. 1
23473252-Learn-C-Sharp

23473252-Learn-C-Sharp

Ratings: (0)|Views: 1,622|Likes:
Published by pgallegos

More info:

Published by: pgallegos on Dec 17, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

11/10/2011

pdf

text

original

You're Reading a Free Preview
Pages 9 to 90 are not shown in this preview.
You're Reading a Free Preview
Pages 99 to 104 are not shown in this preview.
You're Reading a Free Preview
Pages 113 to 149 are not shown in this preview.
You're Reading a Free Preview
Pages 158 to 405 are not shown in this preview.
You're Reading a Free Preview
Pages 414 to 425 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->