Book description
Beginning C# Object-Oriented Programming brings you into the modern world of development as you master the fundamentals of programming with C# and learn to develop efficient, reusable, elegant code through the object-oriented programming (OOP) methodology. Take your skills out of the 20th century and into this one with Dan Clark's accessible, quick-paced guide to C# and OOP, completely updated for .NET 4.0 and C# 4.0.
As you develop techniques and best practices for coding in C#, one of the world's most popular contemporary languages, you'll experience modeling a "real world" application through a case study, allowing you to see how both C# and OOP (a methodology you can use with any number of languages) come together to make your code reusable, modern, and efficient.
Throug more than 30 fully hands-on activities, you'll discover how to transform a simple model of an application into a fully functional C# project, including designing the user interface, implementing the business logic, and integrating with a relational database for data storage. Along the way, you will explore the .NET Framework, the creation of a Windows-based user interface, a web-based user interface, and service-oriented programming, all using Microsoft industry leading Visual Studio 2010, C#, Silverlight, the Entity Framework, and more.
What you'll learn
Learn to use the Universal Modeling Language (UML) to quickly design an application correctly from the first time
Understand object-oriented programming principles and how they benefit your work in today's dual Web- and Windows-based world
Integrate OOP fundamentals when developing code in C#
Discover the .NET Framework and how it can help you create applications quickly and efficiently
Walk along as the author develops a complete Windows and Web-based application using the techniques and best practices covered inside
Who this book is for
If you're a beginning C# programmer who wants to gain a foundation in object-oriented programming along with the C# language basics, this book is for you.
Programmers transitioning from a procedural oriented programming model to an object oriented model will also find many practical suggestions and walkthroughs inside.
In particular, VB developers who want to transition to C# programming, but lack a firm grasp of object-oriented programming principles, will find this book an excellent starting point for your C# journey.
The book includes a primer in Appendix A that discusses some fundamental procedural programming concepts.
Table of Contents
Overview of Object-Oriented Programming
Designing OOP Solutions: Identifying the Class Structure
Designing OOP Solutions: Modeling the Object Interaction
Designing OOP Solutions: A Case Study
Introducing the .NET Framework and Visual Studio
Creating Classes
Creating Class Hierarchies
Implementing Object Collaboration
Working with Collections
Implementing the Data Access Layer
Developing Windows Applications
Developing Web Applications
Developing and Consuming WCF Services
Developing the OSO Application
Wrapping Up
Fundamental Programming Concepts
Exception Handling in C#
Installing the Required Software
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. Overview of Object-Oriented Programming
- 2. Designing OOP Solutions: Identifying the Class Structure
- 3. Designing OOP Solutions: Modeling the Object Interaction
- 4. Designing OOP Solutions: A Case Study
-
5. Introducing the .NET Framework and Visual Studio
- 5.1. Introducing the .NET Framework
-
5.2. Using the Visual Studio Integrated Development Environment
-
5.2.1.
- 5.2.1.1. Customizing the IDE
- 5.2.1.2. Creating a New Project
- 5.2.1.3. Investigating the Solution Explorer and Class View
- 5.2.1.4. Exploring the Toolbox and Properties Window
- 5.2.1.5. Building and Executing the Assembly
- 5.2.1.6. Stepping Through Code
- 5.2.1.7. Setting Conditional Breakpoints
- 5.2.1.8. Locating and Fixing Build Errors
-
5.2.1.
- 5.3. Summary
- 6. Creating Classes
- 7. Creating Class Hierarchies
-
8. Implementing Object Collaboration
- 8.1. Communicating Through Messaging
- 8.2. Defining Method Signatures
- 8.3. Passing Parameters
- 8.4. Understanding Event-Driven Programming
- 8.5. Understanding Delegation
- 8.6. Implementing Events
- 8.7. Responding To Events
- 8.8. Windows Control Event Handling
- 8.9. Handling Exceptions in the .NET Framework
- 8.10. Static Properties and Methods
- 8.11. Using Asynchronous Messaging
- 8.12. Summary
- 9. Working with Collections
-
10. Implementing the Data Access Layer
- 10.1. Introducing ADO.NET
- 10.2. Working with Data Providers
- 10.3. Establishing a Connection
- 10.4. Executing a Command
- 10.5. Using Stored Procedures
- 10.6. Using the DataReader Object to Retrieve Data
- 10.7. Using the DataAdapter to Retrieve Data
- 10.8. Working with DataTables and DataSets
- 10.9. Populating a DataTable from a SQL Server Database
- 10.10. Populating a DataSet from a SQL Server Database
- 10.11. Establishing Relationships between Tables in a DataSet
- 10.12. Editing Data in the DataSet
- 10.13. Working with the Entity Framework
- 10.14. Querying Entities with LINQ to EF
- 10.15. Updating Entities with the Entity Framework
- 10.16. Summary
-
11. Developing Windows Applications
- 11.1. Windows Fundamentals
- 11.2. Introducing XAML
- 11.3. Using Layout Controls
- 11.4. Adding Display Controls
- 11.5. Using the Visual Studio Designer
- 11.6. Handling Control Events
- 11.7. Creating and Using Dialog Boxes
- 11.8. Presenting a MessageBox to the User
- 11.9. Creating a Custom Dialog Box
- 11.10. Data Binding in Windows-Based GUIs
- 11.11. Binding Controls Using a DataContext
- 11.12. Creating and Using Control and Data Templates
- 11.13. Summary
- 12. Developing Web Applications
- 13. Developing and Consuming WCF Services
- 14. Developing the OSO Application
-
15. Wrapping Up
- 15.1. Improve Your Object-Oriented Design Skills
- 15.2. Investigate the .NET Framework Namespaces
- 15.3. Become Familiar with ADO.NET and the Entity Framework
- 15.4. Learn More About WPF and Silverlight
- 15.5. Move Toward Component-Based Development
- 15.6. Find Help
- 15.7. Join a User Group
- 15.8. Please Provide Feedback
- 15.9. Thank You and Good Luck
-
A. Fundamental Programming Concepts
- A.1. Working with Variables and Data Types
- A.2. Understanding Elementary Data Types
- A.3. Introducing Composite Data Types
- A.4. Looking at Literals, Constants, and Enumerations
- A.5. Exploring Variable Scope
- A.6. Understanding Data Type Conversion
- A.7. Working with Operators
- A.8. Introducing Decision Structures
- A.9. Using Loop Structures
- A.10. Introducing Methods
- B. Exception Handling in C#
- C. Installing the Required Software
Product information
- Title: Beginning C# Object-Oriented Programming
- Author(s):
- Release date: May 2011
- Publisher(s): Apress
- ISBN: 9781430235309
You might also like
book
Professional C# and .NET, 2021st Edition
Get the latest coverage of the newest features in C#9 and .NET 5 In Professional C# …
book
API Testing and Development with Postman
Explore the world of APIs and learn how to integrate them with production-ready applications using Postman …
book
Getting Started with Advanced C#: Upgrade Your Programming Skills
Understand and work with the most important features of advanced C# in different programming environments. This …
book
Introduction to JavaScript Object Notation
What is JavaScript Object Notation (JSON) and how can you put it to work? This concise …