You are previewing Beginning C# 6.0 Programming with Visual Studio 2015.
O'Reilly logo
Beginning C# 6.0 Programming with Visual Studio 2015

Book Description

This book is the ideal beginner's guide to C# 6 programming and the .NET framework. Coverage starts with the very basics of object oriented programming, assuming no prior programming experience, and step-by-step hands-on tutorials focus on the tools beginners use most. Practical exercises utilize the C# environment in Visual Studio 2015, and includes the latest changes and updates as Microsoft pushes to make C# more compatible with other programming languages. With expert instruction from veteran Microsoft developers, this book will have complete beginners programming Windows and Web apps in no time!

  • Beginning C# 6 Programming with Visual Studio 2015 begins with the absolute basics, such as variables, flow control, object oriented programming, classes, functions, collections, comparisons, conversions, and more
  • Focuses on the beginner favorite Visual C#┬« 6 development environment in Visual Studio 2015, covering all of the latest updates and language changes
  • Includes intermediate instruction on Cloud and Windows┬« programming, including databases and XML
  • Demystifies error handling techniques and debugging processes
  • Features expert-led step-by-step tutorials to help beginners write useful code in real-world programming scenarios

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry from around the world.

Table of Contents

  1. Title Page
  2. Introduction
    1. Who This Book Is For
    2. What This Book Covers
    3. How This Book Is Structured
    4. What You Need to Use This Book
    5. Conventions
    6. Source Code
    7. Errata
    8. p2p.wrox.com
  3. Part I: The OOP Language
    1. Chapter 1: Introducing C#
      1. What Is the .NET Framework?
      2. What Is C#?
      3. Visual Studio 2015
    2. Chapter 2: Writing a C# Program
      1. The Visual Studio 2015 Development Environment
      2. Console Applications
      3. Desktop Applications
    3. Chapter 3: Variables and Expressions
      1. Basic C# Syntax
      2. Basic C# Console Application Structure
      3. Variables
      4. Expressions
    4. Chapter 4: Flow Control
      1. Boolean Logic
      2. Branching
      3. Looping
    5. Chapter 5: More about Variables
      1. Type Conversion
      2. Complex Variable Types
      3. String Manipulation
    6. Chapter 6: Functions
      1. Defining and Using Functions
      2. Variable Scope
      3. The Main() Function
      4. Struct Functions
      5. Overloading Functions
      6. Using Delegates
    7. Chapter 7: Debugging and Error Handling
      1. Debugging in Visual Studio
      2. Error Handling
    8. Chapter 8: Introduction to Object-Oriented Programming
      1. What Is Object-Oriented Programming?
      2. OOP Techniques
      3. OOP in Desktop Applications
    9. Chapter 9: Defining Classes
      1. Class Definitions in C#
      2. System.Object
      3. Constructors and Destructors
      4. OOP Tools in Visual Studio
      5. Class Library Projects
      6. Interfaces Versus Abstract Classes
      7. Struct Types
      8. Shallow Copying Versus Deep Copying
    10. Chapter 10: Defining Class Members
      1. Member Definitions
      2. Additional Class Member Topics
      3. Interface Implementation
      4. Partial Class Definitions
      5. Partial Method Definitions
      6. Example Application
      7. The Call Hierarchy Window
    11. Chapter 11: Collections, Comparisons, and Conversions
      1. Collections
      2. Comparisons
      3. Conversions
    12. Chapter 12: Generics
      1. What Are Generics?
      2. Using Generics
      3. Defining Generic Types
      4. Variance
    13. Chapter 13: Additional C# Techniques
      1. The : : Operator and the Global Namespace Qualifier
      2. Custom Exceptions
      3. Events
      4. Expanding and Using CardLib
      5. Attributes
      6. Initializers
      7. Type Inference
      8. Anonymous Types
      9. Dynamic Lookup
      10. Advanced Method Parameters
      11. Lambda Expressions
  4. Part II: Windows Programming
    1. Chapter 14: Basic Desktop Programming
      1. XAML
      2. The Playground
      3. Control Layout
      4. The Game Client
    2. Chapter 15: Advanced Desktop Programming
      1. Creating and Styling Controls
      2. WPF User Controls
      3. Putting It All Together
  5. Part III: Cloud Programming
    1. Chapter 16: Basic Cloud Programming
      1. The Cloud, Cloud Computing, and the Cloud Optimized Stack
      2. Cloud Patterns and Best Practices
      3. Using Microsoft Azure C# Libraries to Create a Storage Container
      4. Creating an ASP.NET 4.6 Web Site that Uses the Storage Container
      5. How It Works
    2. Chapter 17: Advanced Cloud Programing and Deployment
      1. Creating an ASP.NET Web API
      2. Deploying and Consuming an ASP.NET Web API on Microsoft Azure
      3. Scaling an ASP.NET Web API on Microsoft Azure
  6. Part IV: Data Access
    1. Chapter 18: Files
      1. File Classes for Input and Output
      2. Streams
      3. Monitoring the File System
    2. Chapter 19: XML and JSON
      1. JSON Basics
      2. XML Schemas
      3. Converting XML to JSON
    3. Chapter 20: LINQ
      1. LINQ to XML
      2. LINQ Query Syntax
      3. LINQ Method Syntax
      4. Ordering Query Results
      5. Understanding the orderby Clause
      6. Querying a Large Data Set
      7. Using Aggregate Operators
      8. Using the Select Distinct Query
      9. Ordering by Multiple Levels
      10. Using Group Queries
      11. Using Joins
    4. Chapter 21: Databases
      1. Using Databases
      2. Installing SQL Server Express
      3. Entity Framework
      4. A Code First Database
      5. But Where Is My Database?
      6. Navigating Database Relationships
      7. Handling Migrations
      8. Creating and Querying XML from an Existing Database
  7. Part V: Additional Techniques
    1. Chapter 22: Windows Communication Foundation
      1. What Is WCF?
      2. WCF Concepts
      3. WCF Programming
    2. Chapter 23: Universal Apps
      1. Getting Started
      2. Universal Apps
      3. App Concepts and Design
      4. App Development
      5. Common Elements of Windows Store Apps
      6. The Windows Store
    3. Appendix: Exercise Solutions
      1. Chapter 4 Solutions
      2. Chapter 5 Solutions
      3. Chapter 6 Solutions
      4. Chapter 7 Solutions
      5. Chapter 8 Solutions
      6. Chapter 9 Solutions
      7. Chapter 10 Solutions
      8. Chapter 11 Solutions
      9. Chapter 12 Solutions
      10. Chapter 13 Solutions
      11. Chapter 14 Solutions
      12. Chapter 15 Solutions
      13. Chapter 16 Solutions
      14. Chapter 17 Solutions
      15. Chapter 18 Solutions
      16. Chapter 19 Solutions
      17. Chapter 20 Solutions
      18. Chapter 21 Solutions
      19. Chapter 22 Solutions
      20. Chapter 23 Solutions
  8. End User License Agreement