My Account Log in

1 option

Microsoft Visual C# 2008 : step by step / John Sharp.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Sharp, John, 1964-
Series:
Step by step (Redmond, Wash.)
Step by step
Language:
English
Subjects (All):
C# (Computer program language).
Visual programming (Computer science).
Physical Description:
1 online resource (xxviii, 666 p. ) ill.
Edition:
1st edition
Other Title:
Microsoft Visual C-sharp 2008
Place of Publication:
Redmond, Wash. : Microsoft Press, c2008.
System Details:
text file
Summary:
Get the hands-on, step-by-step guide to learning the latest enhancements in Microsoft Visual C# 2008. Visual C#, one of the tools in Microsoft Visual Studio 2008, is a modern programming language designed to deliver a productive environment for creating business frameworks and reusable object-oriented components. Whether you’re a beginning programmer or new to the Visual C# programming language, you’ll learn how to use the fundamental features of Visual Studio 2008 and gain a basic understanding of the latest enhancement of the Visual C# language. You’ll work at your own pace through hands-on, learn-by-doing exercises, get started creating components and working Windows applications, and build your knowledge as you start creating your first Visual C#–based applications. You’ll also explore how to create data management and Web-based applications. In each chapter, work through learn-by-doing exercises that demonstrate how, when, and why to use the many features of the Visual C# rapid application development environment. Includes a companion CD with code samples, data sets, and a fully searchable eBook. For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
Contents:
Intro
Microsoft® Visual C#® 2008 Step by Step
Introduction
Finding Your Best Starting Point in This Book
Conventions and Features in This Book
Other Features
System Requirements
Code Samples
Using the Code Samples
Uninstalling the Code Samples
Support for This Book
I. Introducing Microsoft Visual C# and Microsoft Visual Studio 2008
Writing Your First Program
Using Namespaces
Creating a Graphical Application
Quick Reference
2. Working with Variables, Operators, and Expressions
Using Identifiers
Identifying Keywords
Using Variables
Declaring Variables
Working with Primitive Data Types
Using Arithmetic Operators
Examining Arithmetic Operators
Controlling Precedence
Using Associativity to Evaluate Expressions
Associativity and the Assignment Operator
Incrementing and Decrementing Variables
Declaring Implicitly Typed Local Variables
3. Writing Methods and Applying Scope
Writing return Statements
Calling Methods
Specifying the Method Call Syntax
Applying Scope
Defining Class Scope
Overloading Methods
Writing Methods
4. Using Decision Statements
Using Boolean Operators
Understanding Conditional Logical Operators
Summarizing Operator Precedence and Associativity
Using if Statements to Make Decisions
Using Blocks to Group Statements
Cascading if Statements
Using switch Statements
Following the switch Statement Rules
5. Using Compound Assignment and Iteration Statements
Writing while Statements
Writing for Statements
Writing do Statements
6. Managing Errors and Exceptions
Trying Code and Catching Exceptions
Using Multiple catch Handlers
Catching Multiple Exceptions
Using Checked and Unchecked Integer Arithmetic.
Writing Checked Expressions
Throwing Exceptions
Using a finally Block
II. Understanding the C# Language
The Purpose of Encapsulation
Defining and Using a Class
Controlling Accessibility
Working with Constructors
Understanding static Methods and Data
Creating a static Field by Using the const Keyword
8. Understanding Values and References
Understanding Null Values and Nullable Types
Understanding the Properties of Nullable Types
Using ref and out Parameters
Creating out Parameters
How Computer Memory Is Organized
The System.Object Class
Boxing
Unboxing
Casting Data Safely
The as Operator
9. Creating Value Types with Enumerations and Structures
Using an Enumeration
Choosing Enumeration Literal Values
Choosing an Enumeration&amp
s Underlying Type
Working with Structures
Understanding Structure and Class Differences
Declaring Structure Variables
Understanding Structure Initialization
Copying Structure Variables
10. Using Arrays and Collections
Creating an Array Instance
Initializing Array Variables
Accessing an Individual Array Element
Iterating Through an Array
Copying Arrays
What Are Collection Classes?
The Queue Collection Class
The Stack Collection Class
The Hashtable Collection Class
The SortedList Collection Class
Comparing Arrays and Collections
Using Collection Classes to Play Cards
11. Understanding Parameter Arrays
Using params object[ ]
Using a params Array
12. Working with Inheritance
Using Inheritance
Calling Base Class Constructors
Assigning Classes
Declaring new Methods
Declaring Virtual Methods
Declaring override Methods
Understanding protected Access.
Understanding Extension Methods
13. Creating Interfaces and Defining Abstract Classes
Interface Restrictions
Referencing a Class Through Its Interface
Working with Multiple Interfaces
Abstract Classes
Sealed Classes
Implementing an Extensible Framework
Summarizing Keyword Combinations
14. Using Garbage Collection and Resource Management
Why Use the Garbage Collector?
How Does the Garbage Collector Work?
Recommendations
Resource Management
Exception-Safe Disposal
The using Statement
Calling the Dispose Method from a Destructor
Making Code Exception-Safe
III. Creating Components
What Are Properties?
Read-Only Properties
Write-Only Properties
Property Accessibility
Understanding the Property Restrictions
Declaring Interface Properties
Generating Automatic Properties
Initializing Objects by Using Properties
16. Using Indexers
The Bitwise and Shift Operators
The Same Example Using Indexers
Understanding Indexer Accessors
Comparing Indexers and Arrays
Indexers in Interfaces
Using Indexers in a Windows Application
17. Interrupting Program Flow and Handling Events
Implementing the Factory Without Using Delegates
Implementing the Factory by Using a Delegate
Using Delegates
Lambda Expressions and Delegates
Using a Lambda Expression as an Adapter
The Form of Lambda Expressions
Enabling Notifications with Events
Subscribing to an Event
Unsubscribing from an Event
Understanding WPF User Interface Events
18. Introducing Generics
The Generics Solution
Generics and Constraints
Creating a Generic Class
Building a Binary Tree Class by Using Generics
Creating a Generic Method
Quick reference.
19. Enumerating Collections
Implementing the IEnumerable Interface
Implementing an Enumerator by Using an Iterator
Defining an Enumerator for the Tree&lt
TItem&gt
Class by Using an Iterator
20. Querying In-Memory Data by Using Query Expressions
Using LINQ in a C# Application
Filtering Data
Ordering, Grouping, and Aggregating Data
Joining Data
Using Query Operators
Querying Data in Tree&lt
Objects
LINQ and Deferred Evaluation
21. Operator Overloading
Overloaded Operators
Creating Symmetric Operators
Understanding Compound Assignment
Declaring Increment and Decrement Operators
Defining Operator Pairs
Implementing an Operator
Understanding Conversion Operators
Implementing User-Defined Conversion Operators
Creating Symmetric Operators, Revisited
Adding an Implicit Conversion Operator
IV. Working with Windows Applications
Adding Controls to the Form
Changing Properties Dynamically
Handling Events in a WPF Form
23. Working with Menus and Dialog Boxes
Menus and Menu Events
Handling Menu Events
Shortcut Menus
Windows Common Dialog Boxes
24. Performing Validation
An Example-Customer Information Maintenance
Changing the Point at Which Validation Occurs
V. Managing Data
Creating the Database
Using ADO.NET to Query Order Information
Querying a Database by Using DLINQ
Creating and Running a DLINQ Query
Deferred and Immediate Fetching
Joining Tables and Creating Relationships
Deferred and Immediate Fetching Revisited
Defining a Custom DataContext Class
Using DLINQ to Query Order Information
26. Displaying and Editing Data by Using Data Binding
Using DLINQ to Modify Data.
Handling Conflicting Updates
Adding and Deleting Data
VI. Building Web Applications
Managing State
Understanding ASP.NET
Creating Web Applications with ASP.NET
Understanding Server Controls
Creating and Using a Theme
Applying a Theme
28. Understanding Web Forms Validation Controls
Validating Data in the Web Browser
Implementing Client Validation
29. Protecting a Web Site and Accessing Data with Web Forms
Implementing Forms-Based Security
Querying and Displaying Data
Displaying Customer and Order History Information
Paging Data
Editing Data
Navigating Between Forms
30. Creating and Using a Web Service
What Is the Web Services Description Language?
Nonfunctional Requirements of Web Services
The Role of Windows Communication Foundation
Building a Web Service
Web Services, Clients, and Proxies
Talking SOAP: The Easy Way
Consuming the ProductsService Web Service
Quick Reference.
Notes:
Cover title.
Includes index.
Description based on publisher supplied metadata and other sources.
ISBN:
9780735635005
0735635005
OCLC:
501190395

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account