
Learning C# 3.0
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Preface
- About This Book
- Who This Book Is For
- How This Book Is Organized
- Conventions Used in This Book
- Support: A Note from Jesse Liberty
- Using Code Examples
- We'd Like to Hear from You
- Safari® Books Online
- Acknowledgments
- Jesse Liberty
- Brian MacDonald
- C# and .NET Programming
- Installing C# Express
- C# 3.0 and .NET 3.5
- The .NET Platform
- The .NET Framework
- The C# Language
- Your First Program: Hello World
- The Compiler
- Examining Your First Program
- The Integrated Development Environment
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercise
- Visual Studio 2008 and C# Express 2008
- Before You Read Further
- The Start Page
- Projects and Solutions
- Project Types
- Templates
- Inside the Integrated Development Environment
- Building and Running Applications
- Menus
- The File Menu
- The Edit Menu
- The Clipboard Ring
- Find and Replace
- Go To
- Insert File As Text
- Advanced
- Incremental search
- Bookmarks
- Outlining
- IntelliSense
- The View Menu
- Class View
- Code Definition
- Error List
- Output
- Properties
- Task List
- Toolbox
- Other Windows
- The Refactor Menu
- The Project Menu
- The Build Menu
- The Debug Menu
- The Data Menu
- The Format Menu
- The Tools Menu
- Connect to Device
- Device Emulator Manager
- Connect to Database
- Connect to Server
- Code Snippets Manager
- Choose Toolbox Items
- External Tools
- Import and Export Settings
- Options
- The Window Menu
- The Help Menu
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- C# Language Fundamentals
- Statements
- Types
- Numeric Types
- Nonnumeric Types: char and bool
- Types and Compiler Errors
- WriteLine( ) and Output
- Variables and Assignment
- Definite Assignment
- Implicitly Typed Variables
- Casting
- Constants
- Literal Constants
- Symbolic Constants
- Enumerations
- Strings
- Whitespace
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Operators
- Expressions
- The Assignment Operator (=)
- Mathematical Operators
- Simple Arithmetic Operators (+, -, *, /)
- The Modulus Operator (%)
- Increment and Decrement Operators
- The Calculate and Reassign Operators
- Increment or Decrement by 1
- The Prefix and Postfix Operators
- Relational Operators
- Logical Operators and Conditionals
- The Conditional Operator
- Operator Precedence
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Branching
- Unconditional Branching Statements
- Conditional Branching Statements
- if Statements
- Single-Statement if Blocks
- Short-Circuit Evaluation
- if . . . else Statements
- Nested if Statements
- switch Statements
- Fall-Through and Jump-to Cases
- Switch on string Statements
- ReadLine( ) and Input
- Iteration (Looping) Statements
- Creating Loops with goto
- The while Loop
- The do . . . while Loop
- The for Loop
- Controlling a for loop with the modulus operator
- Breaking out of a for loop
- The continue statement
- Optional for loop header elements
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Object-Oriented Programming
- Creating Models
- Classes and Objects
- Defining a Class
- Class Relationships
- The Three Pillars of Object-Oriented Programming
- Encapsulation
- Specialization
- Polymorphism
- Object-Oriented Analysis and Design
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Classes and Objects
- Defining Classes
- Instantiating Objects
- Creating a Box Class
- Access Modifiers
- Method Arguments
- Return Types
- Constructors
- Initializers
- Object Initializers
- Anonymous Types
- The this Keyword
- Static and Instance Members
- Invoking Static Methods
- Using Static Fields
- Finalizing Objects
- Memory Allocation: The Stack Versus the Heap
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Inside Methods
- Overloading Methods
- Encapsulating Data with Properties
- The get Accessor
- The set Accessor
- Automatic Properties
- Returning Multiple Values
- Passing Value Types by Reference
- out Parameters and Definite Assignment
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Basic Debugging
- Setting a Breakpoint
- Using the Debug Menu to Set Your Breakpoint
- Setting Conditions and Hit Counts
- Examining Values: The Autos and Locals Windows
- Setting Your Watch
- The Call Stack
- Stopping Debugging
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Arrays
- Using Arrays
- Declaring Arrays
- Understanding Default Values
- Accessing Array Elements
- Arrays and Loops
- The foreach Statement
- Initializing Array Elements
- The params Keyword
- Multidimensional Arrays
- Rectangular Arrays
- Jagged Arrays
- Array Methods
- Sorting Arrays
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Inheritance and Polymorphism
- Specialization and Generalization
- Inheritance
- Implementing Inheritance
- Calling the Base Class Constructor
- Hiding the Base Class Method
- Controlling Access
- Polymorphism
- Creating Polymorphic Types
- Overriding Virtual Methods
- Using Objects Polymorphically
- Versioning with new and override
- Abstract Classes
- Sealed Classes
- The Root of All Classes: Object
- Summary
- Test Your Knowlege: Quiz
- Test Your Knowledge: Exercises
- Operator Overloading
- Designing the Fraction Class
- Using the operator Keyword
- Creating Useful Operators
- The Equals Operator
- Conversion Operators
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Interfaces
- What Interfaces Are
- Implementing an Interface
- Defining the Interface
- Implementing the Interface on the Client
- Implementing More Than One Interface
- Casting to an Interface
- The is and as Operators
- Extending Interfaces
- Combining Interfaces
- Overriding Interface Methods
- Explicit Interface Implementation
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Generics and Collections
- Generics
- Collection Interfaces
- Creating Your Own Collections
- Creating Indexers
- Indexers and Assignment
- Indexing on Other Values
- Generic Collection Interfaces
- The IEnumerable&T& Interface
- Framework Generic Collections
- Generic Lists: List&T&
- Sorting objects with the generic list
- Controlling sorting by implementing IComparer&T&
- Generic Queues
- Generic Stacks
- Dictionaries
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Strings
- Creating Strings
- String Literals
- Escape Characters
- Verbatim Strings
- The ToString( ) Method
- Manipulating Strings
- Comparing Strings
- Concatenating Strings
- Copying Strings
- Testing for Equality
- Other Useful String Methods
- Finding Substrings
- Splitting Strings
- The StringBuilder Class
- Regular Expressions
- The Regex Class
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Throwing and Catching Exceptions
- Bugs, Errors, and Exceptions
- Throwing Exceptions
- Searching for an Exception Handler
- The throw Statement
- The try and catch Statements
- How the Call Stack Works
- Creating Dedicated catch Statements
- The finally Statement
- Exception Class Methods and Properties
- Custom Exceptions
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Delegates and Events
- Delegates
- Events
- Publishing and Subscribing
- Events and Delegates
- Solving Delegate Problems with Events
- The event Keyword
- Using Anonymous Methods
- Lambda Expressions
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Creating Windows Applications
- Creating a Simple Windows Form
- Using the Visual Studio Designer
- Creating a Real-World Application
- Creating the Basic UI Form
- Populating the TreeView Controls
- TreeNode objects
- Recursing through the subdirectories
- Getting the files in the directory
- Handling the TreeView Events
- Clicking the source TreeView
- Expanding a directory
- Clicking the target TreeView
- Handling the Button Events
- Handling the Clear button event
- Implementing the Copy button event
- Handling the Delete button event
- Handling the Cancel button event
- Source Code
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Windows Presentation Foundation
- Your First WPF Application
- WPF Differences from Windows Forms
- Using Resources
- Animations
- Triggers and Storyboards
- Animations As Resources
- C# and WPF
- Grids and Stack Panels
- Defining ListBox styles
- Triggers and animations
- Adding Data
- Instantiating objects declaratively
- Using the Data in the XAML
- Defining the ListBox
- Event Handling
- The Complete XAML File
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- ADO.NET and Relational Databases
- Relational Databases and SQL
- Installing the Northwind Database
- Tables, Records, and Columns
- Normalization
- Declarative Referential Integrity
- SQL
- The ADO.NET Object Model
- DataTables and DataColumns
- DataRelations
- Rows
- DataAdapter
- DbCommand and DbConnection
- DataReader
- Getting Started with ADO.NET
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- LINQ
- Querying In-Memory Data
- Anonymous Types and Implicitly Typed Variables
- Lambda Expressions
- Ordering and Joining
- Using LINQ with SQL
- Using the Object Relational Designer
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- Answers to Quizzes and Exercises
- Chap ter 1: C# and .NET Programming
- Quiz Solutions
- Exercise Solution
- Chap ter 2: Visual Studio 2008 and C# Express 2008
- Quiz Solutions
- Exercise Solutions
- Chap ter 3: C# Language Fundamentals
- Quiz Solutions
- Exercise Solutions
- Chap ter 4: Operators
- Quiz Solutions
- Exercise Solutions
- Chap ter 5: Branching
- Quiz Solutions
- Exercise Solutions
- Chap ter 6: Object-Oriented Programming
- Quiz Solutions
- Exercise Solutions
- Chap ter 7: Classes and Objects
- Quiz Solutions
- Exercise Solutions
- Chap ter 8: Inside Methods
- Quiz Solutions
- Exercise Solutions
- Chap ter 9: Basic Debugging
- Quiz Solutions
- Exercise Solutions
- Chap ter 10: Arrays
- Quiz Solutions
- Exercise Solutions
- Chap ter 11: Inheritance and Polymorphism
- Quiz Solutions
- Exercise Solutions
- Chap ter 12: Operator Overloading
- Quiz Solutions
- Exercise Solutions
- Chap ter 13: Interfaces
- Quiz Solutions
- Exercise Solutions
- Chap ter 14: Generics and Collections
- Quiz Solutions
- Exercise Solutions
- Chap ter 15: Strings
- Quiz Solutions
- Exercise Solutions
- Chap ter 16: Throwing and Catching Exceptions
- Quiz Solutions
- Exercise Solutions
- Chap ter 17: Delegates and Events
- Quiz Solutions
- Exercise Solutions
- Chap ter 18: Creating Windows Applications
- Quiz Solutions
- Exercise Solutions
- Chap ter 19: Windows Presentation Foundation
- Quiz Solutions
- Exercise Solutions
- Chap ter 20: ADO.NET and Relational Databases
- Quiz Solutions
- Exercise Solutions
- Chap ter 21: LINQ
- Quiz Solutions
- Exercise Solutions
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.