C# Primer Plus

( 1 )

Overview

C# Primer Plus teaches the C# programming language and relevant parts of the .NET platform from the ground up, walking you through the basics of object-oriented programming, important programming techniques and problem solving while providing a thorough coverage of C#'s essential elements - such as classes, objects, data types, loops, branching statements, arrays, and namespaces.

In early chapters guided tours take you sightseeing to the main attractions of C# and provide a fast...

See more details below
Other sellers (Paperback)
  • All (21) from $2.33   
  • New (4) from $36.39   
  • Used (17) from $2.33   
Sending request ...

Overview

C# Primer Plus teaches the C# programming language and relevant parts of the .NET platform from the ground up, walking you through the basics of object-oriented programming, important programming techniques and problem solving while providing a thorough coverage of C#'s essential elements - such as classes, objects, data types, loops, branching statements, arrays, and namespaces.

In early chapters guided tours take you sightseeing to the main attractions of C# and provide a fast learning-path that enables you to quickly write simple C# programs. Your initial programming skills are then gradually expanded, through the many examples, case studies, illustrations, review questions and programming exercises, to include powerful concepts - like inheritance, polymorphism, interfaces and exception handling, along with C#'s most innovative features - such as properties, indexers, delegates and events.

With C# Primer Plus's dual emphasis on C# as well as fundamental programming techniques, this friendly tutorial will soon make you a proficient C# programmer building Windows applications on the .NET platform.

Read More Show Less

Product Details

  • ISBN-13: 9780672321528
  • Publisher: Sams
  • Publication date: 12/28/2001
  • Series: Primer Plus Series
  • Pages: 971
  • Sales rank: 819,235
  • Product dimensions: 7.32 (w) x 8.97 (h) x 1.96 (d)

Meet the Author

Klaus Michelsen has a Masters degree in Economics from Aarhus University in Denmark. His studies included artificial intelligence and courses in advanced computer science at Sydney University in Australia. Since his first programming assignment for a shoe shop when he was 18, he has, during his 15 years of programming experience, been exposed to many different technologies and programming languages, including Java, Visual J++, C++, MS Access, VB, Eiffel, and Pascal. Klaus has been working with C# and .NET since their introduction in the year 2000.

Read More Show Less

Table of Contents

Introduction.

1. Computers and Computer Programming: Basic Concepts.

C# Is an Object-Oriented Programming Language. Hardware. Software. Summary. Review Questions.

2. Your First C# Program.

Software Development. The Software Development Process. Algorithms and Pseudocode. The Three Different Types of Errors. Object-Oriented Programming: A First Encounter. Software Reuse. The Assembly, the Basic Unit of Code Reuse in .NET. The .NET Framework Class Library. C#: History and Design Goals. C#'s Background. C#'s Design Goals. What Kind of Programs Can I Write with C#? The Mechanics of Creating a C# Program. Before Getting Started. Choosing a Text Editor. The Seven Steps to Writing a Simple C# Program. A Brief Source Code Analysis. Note on Syntax Errors and Compilers. Summary. Review Questions. Programming Exercises.

3. A Guided Tour through C#: Part I.

Introduction. Abstraction and Encapsulation. An Interactive Hello World! Program. Summary. Review Questions. Programming Exercises.

4. A Guided Tour through C#: Part II.

Introduction. Essential Elements of SimpleCalculator.cs. Simplifying Your Code with Methods. Methods as Building Blocks: Encapsulating Your Helper Methods with the private keyword. Summary. Review Questions. Programming Exercises.

5. Your First Object-Oriented C# Program.

Introduction. Lexical Structure. Some Thoughts on Elevator Simulations. Concepts, Goals and Solutions in an Elevator Simulation Program: Collecting Valuable Statistics for Evaluating an Elevator System. Object-Oriented Programming: A Practical Example. Summary. Review Questions. Programming Exercises.

6. Types Part I: The Simple Types.

Introduction. Types in C#: An Overview. Simple Types. The Blipos Clock. Summary. Review Questions. Programming Exercises.

7. Types Part II: Operators, Enumerators, and Strings.

Introduction. Arithmetic Operators and Numerical Expressions. Associativity. Parentheses and Precedence. The Modulus Operator (%). Unary Operators. Determining the Type of an Expression. Combining Different Types in One Expression. Accessing the Metadata of a Component: A Brief Introduction. Enumerated Constants. Enumerator Operators. Conversions. The Methods of System.Enum. Characters and Text. The char Type. The string type. Summary. Review Questions. Programming Exercises.

8. Flow of Control Part I: Branching Statements and Related Concepts.

Introduction to Flow of Control. Branching with the if Statement. Comparison Operators and Boolean Expressions. Nested if Statements. Multibranch if-else Statements. Logical Operators. The Scope of Variables. The goto Statement. The switch Statement. The Conditional Operator. Summary. Review Questions. Programming Exercises.

9. Flow of Control Part II: Iteration Statements.

Traversing, Analyzing, and Generating Sequences of Data. The while Loop Statement. The do-while Loop Statement. The for Loop Statement. The Jump Statements break and continue. Structured Programming and Structured Constructs. Combination Assignment Operators. Nested Iteration Statements. Programming Exercises. Summary. Review Questions. Programming Exercises.

10. Arrays Part I: Array Essentials.

Declaring and Defining an Array. Accessing Individual Array Elements. Array Indexes Out of Range. Adjusting for the Zero-Based Array Index. Initializing Arrays. Traversing an Entire Array with the foreach Statement. System.Array Is a Reference Type. Arrays and Equality. Arrays and Methods. A Method to Perform Array Value Equality Comparisons. Command Line Arguments. Using Arrays As Return Values from Methods. Array Elements Referencing Objects. Arrays As Instance Variables in Classes. Summary. Review Questions. Programming Exercises.

11. Arrays Part II: Multidimensional Arrays— Searching and Sorting Arrays.

Multidimensional Arrays. Arrays of More Than Two Dimensions. The Built-In Methods of System.Array. Special Array Techniques. Searching. Summary. Review Questions. Programming Exercises.

12. Class Anatomy Part I: static Class Members and Method Adventures.

The Anatomy of a Class: Overview. Data Members. Function Members. Summary. Review Questions. Programming Exercises.

13. Class Anatomy Part II: Object Creation and Garbage Collection.

Instance Constructors. static Constructors. The readonly Member. Garbage Collection: Automatic Dynamic Memory Management. Summary. Review Questions. Programming Exercises.

14. Class Anatomy Part III: Writing Intuitive Code.

Properties. Indexers: Using Objects Like Arrays. Operator Overloading. User-Defined Implicit and Explicit Conversions. Nested Types. Summary. Review Questions. Programming Exercises.

15. Namespaces, Compilation Units, and Assemblies.

Defining Your Own Namespaces. The Global Nameless Namespace. Namespaces and Compilation Units. Nested Namespaces. Namespace Syntax. More About the using Directive. Compile Units, Namespaces, and Assemblies. Exploring Assemblies with the Ildasm Utility. Summary. Review Questions. Programming Exercises.

16. Inheritance Part I: Basic Concepts.

The Need for Inheritance. Inheritance Fundamentals. Access Modifiers and Inheritance. Derived Class Constructors. Indexers Are Also Inherited and Can Be Overridden. Calling an Overridden Function in the Base Class. Reusing the .NET Framework Class Library with Inheritance. Multiple Levels of Derived Classes. Method Overriding and Overloading Are Different Mechanisms. Summary. Review Questions. Programming Exercises.

17. Inheritance Part II: abstract Functions, Polymorphism, and Interfaces.

abstract Methods, Properties, Indexers, and Classes. Polymorphism. Losing and Regaining Type Information. System.Object: The Ultimate Base Class. Summary. Review Questions. Programming Exercises.

18. Structs.

Defining a Struct. Boxing and Unboxing. Creating Structs with and without new. Value Types and Reference Types. Summary. Review Questions. Programming Exercises.

19. Exception Handling.

Exception Handling: A Brief Overview. Life without try-catch-finally. The try and catch blocks. Catching the Exception Object Farther up the Function Call Chain. Multiple catch Blocks. The finally Block. Nested try Block. throw: Explicitly Throwing Exceptions. Writing Custom Exceptions. Summary. Review Questions. Programming Exercises.

20. Delegates and Events.

Delegates. Events. Summary. Review Questions. Programming Exercises.

21. Preprocessing, XML Documentation, and Attributes.

Preprocessor Directives. XML Documentation. Attributes. Summary. Review Questions. Programming Exercises.

22. File I/O Basics.

The Need for Files. Stream Basics and File I/O. File I/O Classes: An Overview. The FileInfo Class. Text File Input and Output with StreamReader and StreamWriter. Binary Input and Output with the FileStream Class. Summary. Review Questions. Programming Exercises.

23. Recursion Fundamentals.

Pending Method Instances of Different Methods. Pending Method Instances of the Same Method. Putting Recursion to Work: Calculating n Factorial. Recursion and Iteration. Binary Search Using Recursion. Summary. Review Questions. Programming Exercises.

Appendix A: Answers to Quizzes and Exercises.

Chapter 1. Chapter 2. Chapter 3. Chapter 4. Chapter 5. Chapter 6. Chapter 7. Chapter 8. Chapter 9. Chapter 10. Chapter 11. Chapter 12. Chapter 13. Chapter 14. Chapter 15. Chapter 16. Chapter 17. Chapter 18. Chapter 19. Chapter 20. Chapter 21. Chapter 22. Chapter 23.

Index

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star

(1)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted January 5, 2002

    Great and clear cut introduction to C#

    I spent most of my Christmas holidays immersed in the pages of this superb C# book and was amazed by its clarity and attention to detail. Apart from being well written and well organized I particularly enjoyed the many inventive and well-crafted figures supporting the text. Keep in mind that if you are looking for a book about Visual Studio, ASP.NET or Windows Forms (or similar .NET stuff) this book is not for you. It dedicates all its one thousand pages fully to C#, relevant core parts of .NET, and important programming techniques. Even though this initially disappointed me a bit, I now appreciate the great depth this apparent deficiency allows Michelsen to engage in when he probes into the C# language. The book begins by explaining the very basics of computer programming, but because of its rock solid focus on the C# language it manages to span across the entire set of C# features and even provides a thorough and extremely clear treatment of its most advanced features (many of the advanced C# features are treated more extensively in C# Primer Plus than in a lot of the advanced C# books I have sifted through in the book shop) For example the two meticulously written chapters about inheritance don¿t just scratch the surface of this subject but made me more excited about programming than I ever thought possible. The case study found here (one of several case studies in the book) about a simple drawing program utilizing inheritance and polymorphism to implement its functionality was a real eye opener for me. If you are a beginning (C#) programmer and want a complete and clear cut introduction to this exciting new language, without being sidetracked by tons of .NET and Visual Studio stuff, you can¿t beat this book.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)