
Learning C# 2005
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 the Book Is Organized
- Conventions Used in This Book
- Using Code Examples
- Support
- We'd Like to Hear from You
- Safari® Enabled
- Acknowledgments
- Jesse Liberty
- Brian MacDonald
- C# and .NET Programming
- C# 2005 and .NET 2.0
- The .NET Platform
- The .NET 2.0 Framework
- The C# Language
- The Structure of C# Applications
- The Development Environment
- What's in a Program?
- Your First Program: Hello World
- The Compiler
- Examining Your First Program
- Summary
- Quiz
- Exercise
- Visual Studio 2005
- Before You Read Further
- Start Page
- Projects and Solutions
- Web Sites
- Templates
- Inside the Integrated Development Environment
- Building and Running
- Menus and Toolbars
- File Menu
- Edit Menu
- Cycle Clipboard Ring
- Find and Replace
- Go To . . .
- Find All References
- Insert File As Text . . .
- Advanced
- Incremental search
- Bookmarks
- Outlining
- IntelliSense
- View Menu
- Class View
- Code Definition
- Error List
- Output
- Properties
- Task List
- Toolbox
- Other windows
- Refactor Menu
- Project Menu
- Build Menu
- Debug Menu
- Data Menu
- Format Menu
- Tools Menu
- Connect To Device
- Connect To Database
- Code Snippets Manager
- Choose Toolbox Items
- External Tools
- Performance Tools
- Import and Export Settings
- Options
- Window Menu
- Help Menu
- Summary
- Quiz
- Exercises
- C# Language Fundamentals
- Statements
- Types
- Numeric Types
- Non-Numeric Types: char and bool
- Types and Compiler Errors
- Variables
- Definite Assignment
- Constants
- Literal Constants
- Symbolic Constants
- Enumerations
- Strings
- Expressions
- Whitespace
- Summary
- Quiz
- Exercises
- Operators
- The Assignment Operator (=)
- Mathematical Operators
- Simple Arithmetical Operators (+, -, *, / )
- The modulus Operator (%)
- Increment and Decrement Operators
- Calculate and Reassign Operators
- Increment or Decrement by 1
- The Prefix and Postfix Operators
- Relational Operators
- Use of Logical Operators with Conditionals
- The Conditional Operator
- Operator Precedence
- Summary
- Quiz
- 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
- Falling-Through and Jumping-to Cases
- Switch on string Statements
- 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
- The while (true) construct
- Summary
- Quiz
- 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
- Quiz
- Exercises
- Classes and Objects
- Defining Classes
- Instantiating Objects
- Creating a Time Class
- Access Modifiers
- Method Arguments
- Constructors
- Initializers
- The this Keyword
- Static and Instance Members
- Invoking Static Methods
- Using Static Fields
- Destroying Objects
- Memory Allocation: The Stack Versus the Heap
- Summary
- Quiz
- Exercises
- Inside Methods
- Overloading Methods
- Encapsulating Data with Properties
- The get Accessor
- The set Accessor
- Returning Multiple Values
- Passing Value Types by Reference
- out Parameters and Definite Assignment
- Summary
- Quiz
- 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
- Set Your Watch
- The Call Stack
- Summary
- Quiz
- Exercises
- Arrays
- Using Arrays
- Declaring Arrays
- Understanding Default Values
- Accessing Array Elements
- The foreach Statement
- Initializing Array Elements
- The params Keyword
- Multidimensional Arrays
- Rectangular Arrays
- Jagged Arrays
- Array Methods
- Sorting Arrays
- Summary
- Quiz
- Exercises
- Inheritance and Polymorphism
- Specialization and Generalization
- Inheritance
- Implementing Inheritance
- Calling Base Class Constructors
- Controlling Access
- Polymorphism
- Creating Polymorphic Types
- Versioning with new and override
- Abstract Classes
- Sealed Classes
- The Root of All Classes: Object
- Boxing and Unboxing Types
- Boxing Is Implicit
- Unboxing Must Be Explicit
- Avoiding Boxing with Generics
- Summary
- Quiz
- Exercises
- Operator Overloading
- Using the operator Keyword
- Creating Useful Operators
- The Equals Operator
- Conversion Operators
- Summary
- Quiz
- Exercises
- Interfaces
- 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 Implementations
- Explicit Interface Implementation
- Summary
- Quiz
- Exercises
- Generics and Collections
- Generics
- Collection Interfaces
- Creating Your Own Collections
- Indexers and Assignment
- Indexing on Other Values
- Generic Collection Interfaces
- The IEnumerable&T& Interface
- Framework Generic Collections
- Generic Lists: List&T&
- Creating objects that can be sorted by the generic list
- Controlling how elements in a generic collection are sorted by implementing IComparer&T&
- Generic Queues
- Generic Stacks
- Dictionaries
- Summary
- Quiz
- 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
- Quiz
- 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
- Quiz
- Exercises
- Delegates and Events
- Delegates
- Using Delegates to Specify Methods at Runtime
- Multicasting
- Events
- Publishing and Subscribing
- Events and Delegates
- Solving Delegate Problems with Events
- The event Keyword
- Using Anonymous Methods
- Summary
- Quiz
- Exercises
- Creating Windows Applications
- Creating a Simple Windows Form
- Using the Visual Studio Designer
- The partial Keyword
- 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 TreeView Events
- Clicking the source TreeView
- Expanding a directory
- Clicking the target TreeView
- Handling the Clear button event
- Implementing the Copy Button Event
- Sorting the list of selected files
- Handling the Delete Button Event
- XML Documentation Comments
- Summary
- Quiz
- Exercises
- Programming ASP.NET Applications
- Understanding Web Forms
- Web Form Events
- Postback Versus Non-Postback Events
- State
- Creating a Web Form
- Code-Behind Files
- Enabling Debugging
- Adding Controls
- Server Controls
- Data Binding
- Adding Controls and Events
- Summary
- Quiz
- Exercises
- Answers to Quizzes and Exercises
- Chap ter 1: C# and .NET Programming
- Quiz
- Exercise
- Chap ter 2: Visual Studio 2005
- Quiz
- Exercises
- Chap ter 3: C# Language Fundamentals
- Quiz
- Exercises
- Chap ter 4: Operators
- Quiz
- Exercises
- Chap ter 5: Branching
- Quiz
- Exercises
- Chap ter 6: Object-Oriented Programming
- Quiz
- Exercises
- Chap ter 7: Classes and Objects
- Quiz
- Exercises
- Chap ter 8: Inside Methods
- Quiz
- Exercises
- Chap ter 9: Basic Debugging
- Quiz
- Exercises
- Chap ter 10: Arrays
- Quiz
- Exercises
- Chap ter 11: Inheritance and Polymorphism
- Quiz
- Exercises
- Chap ter 12: Operator Overloading
- Quiz
- Exercises
- Chap ter 13: Interfaces
- Quiz
- Exercises
- Chap ter 14: Generics and Collections
- Quiz
- Exercises
- Chap ter 15: Strings
- Quiz
- Exercises
- Chap ter 16: Throwing and Catching Exceptions
- Quiz
- Exercises
- Chap ter 17: Delegates and Events
- Quiz
- Exercises
- Chap ter 18: Creating Windows Applications
- Quiz
- Exercises
- Chap ter 19: Programming ASP.NET Applications
- Quiz
- Exercises
- Index
System requirements
File format: PDF
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 (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
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.