C# Design Patterns
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Microsoft programming > C# Design Patterns: A Tutorial, Portable Documents
C# Design Patterns: A Tutorial, Portable Documents

C# Design Patterns: A Tutorial, Portable Documents


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Design patterns are elegant, adaptable, and reusable solutions to everyday software development problems. Programmers use design patterns to organize objects in programs, making them easier to write and modify. C# Design Patterns: A Tutorial is a practical guide to writing C# programs using the most common patterns. This tutorial begins with clear and concise introductions to C#, object-oriented programming and inheritance, and UML diagrams. Each chapter that follows describes one of twenty-three design patterns, recommends when to use it, and explains the impact that it will have on the larger design. The use of every pattern is demonstrated with simple example programs. These programs are illustrated with screen shots and UML diagrams displaying how the classes interact. Design patterns will have an immediate impact on your work as you learn the following: Applying design patterns effectively in your day-to-day programming Using patterns to create sophisticated, robust C# programs The interaction of classes as demonstrated by UML diagrams Advancing your programming skills using design patterns Design patterns will not only enhance your productivity, but once you see how quickly and easily object-oriented code can be recycled, they will become an everyday part of your C# programming.

Table of Contents:
Preface. Acknowledgments. I. OBJECT-ORIENTED PROGRAMMING IN C#. 1. What Are Design Patterns? Defining Design Patterns. The Learning Process. Studying Design Patterns. Notes on Object-Oriented Approaches. C# Design Patterns. How This Book Is Organized. 2. Syntax of the C# Language. Data Types. Converting between Numbers and Strings. Declaring Multiple Variables. Numeric Constants. Character Constants. Variables. Declaring Variables as You Use Them. Multiple Equals Signs for Initialization. A Simple C# Program. Arithmetic Operators. Increment and Decrement Operators. Combining Arithmetic and Assignment Statements. Making Decisions in C#. Comparison Operators. Combining Conditions. The Most Common Mistake. The Switch Statement. C# Comments. The Ornery Ternary Operator. Looping Statements in C#. The While Loop. The Do-While Statement. The For Loop. Declaring Variables as Needed in For Loops. Commas in For Loop Statements. How C# Differs from C. How C# Differs from Java. Summary. 3. Writing Windows C# Programs. Objects in C#. Managed Languages and Garbage Collection. Classes and Namespaces in C#. Building a C# Application. The Simplest Window Program in C#. Windows Controls. Labels. TextBox. CheckBox. Buttons. Radio Buttons. ListBoxes and ComboBoxes. The Items Collection. Menus. ToolTips. The Windows Controls Program. Summary. Programs on the CD-ROM. 4. Using Classes and Objects in C#. What Do We Use Classes For? A Simple Temperature Conversion Program. Building a Temperature Class. Converting to Kelvin. Putting the Decisions into the Temperature Class. Using Classes for Format and Value Conversion. Handling Unreasonable Values. A String Tokenizer Class. Classes as Objects. Class Containment. Initialization. Classes and Properties. Programming Style in C#. Delegates. Indexers. Operator Overloading. Summary. Programs on the CD-ROM. 5. Inheritance. Constructors. Drawing and Graphics in C#. Using Inheritance. Namespaces. Creating a Square from a Rectangle. Public, Private, and Protected. Overloading. Virtual and Override Keywords. Overriding Methods in Derived Classes. Replacing Methods Using New. Overriding Windows Controls. Interfaces. Abstract Classes. Comparing Interfaces and Abstract Classes. Summary. Programs on the CD-ROM. 6. UML Diagrams. Inheritance. Interfaces. Composition. Annotation. WithClass UML Diagrams. C# Project Files. 7. Arrays, Files, and Exceptions in C#. Arrays. Collection Objects. ArrayLists. Hashtables. SortedLists. Exceptions. Multiple Exceptions. Throwing Exceptions. File Handling. The File Object. Reading a Text File. Writing a Text File. Exceptions in File Handling. Testing for End of File. A csFile Class. Program on the CD-ROM. II. CREATIONAL PATTERNS. 8. The Simple Factory Pattern. How a Simple Factory Works. Sample Code. The Two Derived Classes. Building the Simple Factory. Using the Factory. Factory Patterns in Math Computation. Summary. Thought Questions. Programs on the CD-ROM. 9. The Factory Method. The Swimmer Class. The Events Classes. StraightSeeding. CircleSeeding. Our Seeding Program. Other Factories. When to Use a Factory Method. Thought Question. Program on the CD-ROM. 10. The Abstract Factory Pattern. A GardenMaker Factory. The PictureBox. Handling the RadioButton and Button Events. Adding More Classes. Consequences of Abstract Factory. Thought Question. Program on the CD-ROM. 11. The Singleton Pattern. Creating Singleton Using a Static Method. Exceptions and Instances. Throwing the Exception. Creating an Instance of the Class. Providing a Global Point of Access to a Singleton. Other Consequences of the Singleton Pattern. Programs on the CD-ROM. 12. The Builder Pattern. An Investment Tracker. The Stock Factory. The CheckChoice Class. The ListboxChoice Class. Using the Items Collection in the ListBox Control. Plotting the Data. The Final Choice. Consequences of the Builder Pattern. Thought Questions. Program on the CD-ROM. 13. The Prototype Pattern. Cloning in C#. Using the Prototype. Cloning the Class. Using the Prototype Pattern. Dissimilar Classes with the Same Interface. Prototype Managers. Consequences of the Prototype Pattern. Thought Question. Programs on the CD-ROM. Summary of Creational Patterns. III. STRUCTURAL PATTERNS. 14. The Adapter Pattern. Moving Data between Lists. Making an Adapter. Using the DataGrid. Detecting Row Selection. Using a TreeView. The Class Adapter. Two-Way Adapters. Object versus Class Adapters in C#. Pluggable Adapters. Thought Question. Programs on the CD-ROM. 15. The Bridge Pattern. The Bridger Interface. The VisList Classes. The Class Diagram. Extending the Bridge. Windows Forms as Bridges. Consequences of the Bridge Pattern. Thought Question. Programs on the CD-ROM. 16 The Composite Pattern. An Implementation of a Composite. Computing Salaries. The Employee Classes. The Boss Class. Building the Employee Tree. Self-Promotion. Doubly Linked Lists. Consequences of the Composite Pattern. A Simple Composite. Composites in .NET. Other Implementation Issues. Thought Questions. Programs on the CD-ROM. 17. The Decorator Pattern. Decorating a CoolButton. Handling Events in a Decorator. Layout Considerations. Control Size and Position. Multiple Decorators. Nonvisual Decorators. Decorators, Adapters, and Composites. Consequences of the Decorator Pattern. Thought Questions. Programs on the CD-ROM. 18. The Facade Pattern. What Is a Database? Getting Data Out of Databases. Kinds of Databases. ODBC. Database Structure. Using ADO.NET. Connecting to a Database. Reading Data from a Database Table. Executing a Query. Deleting the Contents of a Table. Adding Rows to Database Tables Using ADO.NET. Building the Facade Classes. Building the Price Query. Making the ADO.NET Facade. The DBTable Class. Creating Classes for Each Table. Building the Price Table. Loading the Database Tables. The Final Application. What Constitutes the Facade? Consequences of the Facade. Thought Question. Program on the CD-ROM. 19. The Flyweight Pattern. Discussion. Example Code. The Class Diagram. Selecting a Folder. Handling the Mouse and Paint Events. Flyweight Uses in C#. Sharable Objects. Copy-on-Write Objects. Thought Question. Program on the CD-ROM. 20. The Proxy Pattern. Sample Code. Proxies in C#. Copy-on-Write. Comparison with Related Patterns. Thought Question. Program on the CD-ROM. Summary of Structural Patterns. IV. BEHAVIORAL PATTERNS. 21. Chain of Responsibility. Applicability. Sample Code. ListBoxes. Programming a Help System. Receiving the Help Command. A Chain or a Tree? Kinds of Requests. Examples in C#. The Chain of Responsibility. Thought Question. Programs on the CD-ROM. 22. The Command Pattern. Motivation. Command Objects. Building Command Objects. Consequences of the Command Pattern. The CommandHolder Interface. Providing Undo. Thought Questions. Programs on the CD-ROM. 23. The Interpreter Pattern. Motivation. Applicability. A Simple Report Example. Interpreting the Language. Objects Used in Parsing. Reducing the Parsed Stack. Implementing the Interpreter Pattern. The Syntax Tree. Consequences of the Interpreter Pattern. Thought Question. Program on the CD-ROM. 24. The Iterator Pattern. Motivation. Sample Iterator Code. Fetching an Iterator. Filtered Iterators. The Filtered Iterator. Keeping Track of the Clubs. Consequences of the Iterator Pattern. Programs on the CD-ROM. 25. The Mediator Pattern. An Example System. Interactions between Controls. Sample Code. Initialization of the System. Mediators and Command Objects. Consequences of the Mediator Pattern. Single Interface Mediators. Implementation Issues. Program on the CD-ROM. 26. The Memento Pattern. Motivation. Implementation. Sample Code. A Cautionary Note. Command Objects in the User Interface. Handling Mouse and Paint Events. Consequences of the Memento. Thought Question. Program on the CD-ROM. 27. The Observer Pattern. Watching Colors Change. The Message to the Media. Consequences of the Observer Pattern. Program on the CD-ROM. 28. The State Pattern. Sample Code. Switching between States. How the Mediator Interacts with the StateManager. The ComdToolBarButton. Handling the Fill State. Handling the Undo List. The VisRectangle and VisCircle Classes. Mediators and the God Class. Consequences of the State Pattern. State Transitions. Thought Questions. Program on the CD-ROM. 29 The Strategy Pattern. Motivation. Sample Code. The Context. The Program Commands. The Line and Bar Graph Strategies. Drawing Plots in C#. Making Bar Plots. Making Line Plots. Consequences of the Strategy Pattern. Program on the CD-ROM. 30. The Template Method Pattern. Motivation. Kinds of Methods in a Template Class. Sample Code. Drawing a Standard Triangle. Drawing an Isosceles Triangle. The Triangle Drawing Program. Templates and Callbacks. Summary and Consequences. Programs on the CD-ROM. 31. The Visitor Pattern. Motivation. When to Use the Visitor Pattern. Sample Code. Visiting the Classes. Visiting Several Classes. Bosses Are Employees, Too. Catch-All Operations with Visitors. Double Dispatching. Why Are We Doing This? Traversing a Series of Classes. Consequences of the Visitor Pattern. Thought Question. Program on the CD-ROM. Bibliography. Index.

About the Author :
James W. Cooper is a research staff member in the Advanced Information Retrieval and Analysis Department at the IBM Thomas J. Watson Research Center. He is also a columnist for Java Pro magazine and a reviewer for Visual Basic Programmer's Journal. He has published 14 books, which include Principles of Object-Oriented Programming Using Java 1.1 (Ventana) and The Visual Basic Programmer's Guide to Java (Ventana).


Best Sellers


Product Details
  • ISBN-13: 9780672334290
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Language: English
  • Sub Title: A Tutorial, Portable Documents
  • ISBN-10: 0672334291
  • Publisher Date: 27 Apr 2021
  • Binding: Digital download
  • No of Pages: 416


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
C# Design Patterns: A Tutorial, Portable Documents
Pearson Education (US) -
C# Design Patterns: A Tutorial, Portable Documents
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

C# Design Patterns: A Tutorial, Portable Documents

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!