Book description
With its support for dynamic programming, C# 4.0 continues to evolve as a versatile language on its own. But when C# is used with .NET Framework 4, the combination is incredibly powerful. This bestselling tutorial shows you how to build web, desktop, and rich Internet applications using C# 4.0 with .NET's database capabilities, UI framework (WPF), extensive communication services (WCF), and more.
In this sixth edition, .NET experts Ian Griffiths, Matthew Adams, and Jesse Liberty cover the latest enhancements to C#, as well as the fundamentals of both the language and framework. You'll learn concurrent programming with C# 4.0, and how to use .NET tools such as the Entity Framework for easier data access, and the Silverlight platform for browser-based RIA development.
- Learn C# fundamentals, such as variables, flow control, loops, and methods
- Build complex programs with object-oriented and functional programming techniques
- Process large collections of data with the native query features in LINQ
- Communicate across networks with Windows Communication Foundation (WCF)
- Learn the advantages of C# 4.0's dynamic language features
- Build interactive Windows applications with Windows Presentation Foundation (WPF)
- Create rich web applications with Silverlight and ASP.NET
Publisher resources
Table of contents
- Programming C# 4.0
- A Note Regarding Supplemental Files
- Preface
- 1. Introducing C#
- 2. Basic Programming Techniques
- 3. Abstracting Ideas with Classes and Structs
-
4. Extensibility and Polymorphism
- Association Through Composition and Aggregation
- Inheritance and Polymorphism
- Replacing Methods in Derived Classes
- Inheritance and Protection
- Calling Base Class Methods
- Thus Far and No Farther: sealed
- Requiring Overrides with abstract
- All Types Are Derived from Object
- C# Does Not Support Multiple Inheritance of Implementation
- C# Supports Multiple Inheritance of Interface
- Deriving Interfaces from Other Interfaces
- The Last Resort: Checking Types at Runtime
- Summary
- 5. Composability and Extensibility with Delegates
- 6. Dealing with Errors
- 7. Arrays and Lists
- 8. LINQ
- 9. Collection Classes
-
10. Strings
- What Is a String?
- The String and Char Types
- Literal Strings and Chars
- Formatting Data for Output
- Culture Sensitivity
- Accessing Characters by Index
- Strings Are Immutable
- Getting a Range of Characters
- Composing Strings
- Manipulating Text
- Finding and Replacing Content
- All Sorts of “Empty” Strings
- Trimming Whitespace
- Checking Character Types
- Encoding Characters
- Summary
-
11. Files and Streams
- Inspecting Directories and Files
- Examining Directories
- Manipulating File Paths
- Examining File Information
- Creating Temporary Files
- Deleting Files
- Well-Known Folders
- Concatenating Path Elements Safely
- Creating and Securing Directory Hierarchies
- Deleting a Directory
- Writing Text Files
- When Files Go Bad: Dealing with Exceptions
- Reading Files into Memory
- Streams
- Reading, Writing, and Locking Files
- FileStream Constructors
- Asynchronous File Operations
- Isolated Storage
- Streams That Aren’t Files
- Summary
- 12. XML
- 13. Networking
- 14. Databases
- 15. Assemblies
- 16. Threads and Asynchronous Code
- 17. Attributes and Reflection
- 18. Dynamic
- 19. Interop with COM and Win32
- 20. WPF and Silverlight
- 21. Programming ASP.NET Applications
- 22. Windows Forms
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Programming C# 4.0, 6th Edition
- Author(s):
- Release date: August 2010
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596159832
You might also like
book
Programming C# 3.0, 5th Edition
Written by popular author and .NET expert Jesse Liberty, this thoroughly updated tutorial for beginning to …
book
C# 6.0 in a Nutshell, 6th Edition
When you have questions about C# 6.0 or the .NET CLR and its core Framework assemblies, …
book
Windows Forms 2.0 Programming
“Some books are different-the content can't be Googled from the Internet, the authors have real-life experiences …
book
Programming in C#: Exam 70-483 (MCSD) Guide
Acquire necessary skills in preparing for Microsoft certification and enhance your software development career by learning …