C# 6 and .NET Core 1.0: Modern Cross-Platform Development

Create powerful cross-platform applications using C# 6, .NET Core 1.0, ASP.NET Core 1.0, and Visual Studio 2015

C# 6 and .NET Core 1.0: Modern Cross-Platform Development

This ebook is included in a Mapt subscription
Mark J. Price

23 customer reviews
Create powerful cross-platform applications using C# 6, .NET Core 1.0, ASP.NET Core 1.0, and Visual Studio 2015
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find out moreStart Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785285691
Paperback550 pages

Book Description

With the release of .NET Core 1.0, you can now create applications for Mac OS X and Linux, as well as Windows, using the development tools you know and love. C# 6 and .NET Core 1.0 has been divided into three high-impact sections to help start putting these new features to work.

First, we'll run you through the basics of C#, as well as object-orient programming, before taking a quick tour through the latest features of C# 6 such as string interpolation for easier variable value output, exception filtering, and how to perform static class imports. We'll also cover both the full-feature, mature .NET Framework and the new, cross-platform .NET Core.

After quickly taking you through C# and how .NET works, we'll dive into the internals of the .NET class libraries, covering topics such as performance, monitoring, debugging, internationalization, serialization, and encryption. We'll look at Entity Framework Core 1.0 and how to develop Code-First entity data models, as well as how to use LINQ to query and manipulate that data.

The final section will demonstrate the major types of applications that you can build and deploy cross-device and cross-platform. In this section, we'll cover Universal Windows Platform (UWP) apps, web applications, and web services. Lastly, we'll help you build a complete application that can be hosted on all of today's most popular platforms, including Linux and Docker.

By the end of the book, you'll be armed with all the knowledge you need to build modern, cross-platform applications using C# and .NET Core.

Table of Contents

Chapter 1: Hello, C#! Welcome, .NET Core!
Setting up your development environment
Understanding .NET Framework, .NET Core, and .NET Native
Writing and compiling code using the Developer Command Prompt
Writing and compiling code using Microsoft Visual Studio 2015
Targeting the .NET Core
Managing source code with GitHub
Practicing and exploring
Summary
Chapter 2: Speaking C#
Understanding C# basics
Declaring variables
Building console applications
Operating on variables
Practicing and exploring
Summary
Chapter 3: Controlling the Flow, Converting Types, and Handling Exceptions
Selection statements
Iteration statements
Casting and converting between types
Handling exceptions
Checking for overflow
Looking for help
Practice and explore
Summary
Chapter 4: Using Common .NET Types
Using assemblies and namespaces
Storing and manipulating text
Storing data with collections
Practicing and exploring
Summary
Chapter 5: Using Specialized .NET Types
Debugging and diagnostics
Unit testing an application
Internationalizing an application
Interoperating with unmanaged code
Practicing and exploring
Summary
Chapter 6: Building Your Own Types with Object-Oriented Programming
Talking about OOP
Building class libraries
Storing data with fields
Writing and calling methods
Controlling access with properties and indexers
Simplifying methods with operators
Raising and handling events
Practicing and exploring
Summary
Chapter 7: Implementing Interfaces and Inheriting Classes
Implementing interfaces
Managing memory with reference and value types
Inheriting from classes
Casting within inheritance hierarchies
Documenting your types
Inheriting and extending .NET types
Practice and explore
Summary
Chapter 8: Working with Relational Data Using the Entity Framework
Relational Database Management Systems
Using ADO.NET
Using Entity Framework 6
Using Entity Framework Core
Practicing and exploring
Summary
Chapter 9: Querying and Manipulating Data with LINQ
Writing LINQ queries
Using multiple threads with Parallel LINQ
Creating your own LINQ extension methods
Working with LINQ to XML
Practicing and exploring
Summary
Chapter 10: Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding text
Serializing object graphs
Practice and explore
Summary
Chapter 11: Protecting Your Data and Applications
Understanding the vocabulary of protection
Encrypting and decrypting data
Hashing data
Signing data
Authenticating and authorizing users
Practicing and exploring
Summary
Chapter 12: Improving Performance and Scalability with Multitasking
Understanding processes and threads
Running tasks asynchronously
The async and await keywords
Synchronizing access to shared resources
Practicing and exploring
Summary
Chapter 13: Building Universal Windows Platform Apps Using XAML
Understanding the UWP
Understanding XAML
Creating a Windows desktop application using WPF
Creating an app for the Universal Windows Platform
Using resources and templates

Data binding
Animating with storyboards
Testing in emulators
Practicing and exploring
Summary
Chapter 14: Building Web Applications and Services Using ASP.NET Core
Understanding ASP.NET Core
ASP.NET Core startup
ASP.NET Core controllers
ASP.NET Core models
ASP.NET Core views
Taking ASP.NET Core further
ASP.NET Core Web API
Practicing and exploring
Summary
Chapter 15: Taking C# Cross-Platform
Understanding cross-platform development
Installing Visual Studio Code and ASP.NET Core
Building a console application
Building cross-platform web applications using ASP.NET Core
Understanding the .NET Core command-line tools
Practicing and exploring
Summary
Chapter 16: Building a Quiz
Designing the quiz application
Building the quiz solution
Running the quiz
Hosting ASP.NET Core web apps in Microsoft Azure
Practicing and exploring
Summary

What You Will Learn

  • Build cross-platform applications using C# 6 and .NET Core 1.0
  • Explore ASP.NET Core 1.0 and learn how to create professional web applications
  • Improve your application’s performance using multitasking
  • Use Entity Framework Core 1.0 and learn how to build Code-First databases
  • Master object-oriented programming with C# to increase code reuse and efficiency
  • Familiarize yourself with cross-device app development using the Universal Windows Platform and XAML
  • Query and manipulate data using LINQ
  • Protect your data by using encryption and hashing

Authors

Table of Contents

Chapter 1: Hello, C#! Welcome, .NET Core!
Setting up your development environment
Understanding .NET Framework, .NET Core, and .NET Native
Writing and compiling code using the Developer Command Prompt
Writing and compiling code using Microsoft Visual Studio 2015
Targeting the .NET Core
Managing source code with GitHub
Practicing and exploring
Summary
Chapter 2: Speaking C#
Understanding C# basics
Declaring variables
Building console applications
Operating on variables
Practicing and exploring
Summary
Chapter 3: Controlling the Flow, Converting Types, and Handling Exceptions
Selection statements
Iteration statements
Casting and converting between types
Handling exceptions
Checking for overflow
Looking for help
Practice and explore
Summary
Chapter 4: Using Common .NET Types
Using assemblies and namespaces
Storing and manipulating text
Storing data with collections
Practicing and exploring
Summary
Chapter 5: Using Specialized .NET Types
Debugging and diagnostics
Unit testing an application
Internationalizing an application
Interoperating with unmanaged code
Practicing and exploring
Summary
Chapter 6: Building Your Own Types with Object-Oriented Programming
Talking about OOP
Building class libraries
Storing data with fields
Writing and calling methods
Controlling access with properties and indexers
Simplifying methods with operators
Raising and handling events
Practicing and exploring
Summary
Chapter 7: Implementing Interfaces and Inheriting Classes
Implementing interfaces
Managing memory with reference and value types
Inheriting from classes
Casting within inheritance hierarchies
Documenting your types
Inheriting and extending .NET types
Practice and explore
Summary
Chapter 8: Working with Relational Data Using the Entity Framework
Relational Database Management Systems
Using ADO.NET
Using Entity Framework 6
Using Entity Framework Core
Practicing and exploring
Summary
Chapter 9: Querying and Manipulating Data with LINQ
Writing LINQ queries
Using multiple threads with Parallel LINQ
Creating your own LINQ extension methods
Working with LINQ to XML
Practicing and exploring
Summary
Chapter 10: Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding text
Serializing object graphs
Practice and explore
Summary
Chapter 11: Protecting Your Data and Applications
Understanding the vocabulary of protection
Encrypting and decrypting data
Hashing data
Signing data
Authenticating and authorizing users
Practicing and exploring
Summary
Chapter 12: Improving Performance and Scalability with Multitasking
Understanding processes and threads
Running tasks asynchronously
The async and await keywords
Synchronizing access to shared resources
Practicing and exploring
Summary
Chapter 13: Building Universal Windows Platform Apps Using XAML
Understanding the UWP
Understanding XAML
Creating a Windows desktop application using WPF
Creating an app for the Universal Windows Platform
Using resources and templates

Data binding
Animating with storyboards
Testing in emulators
Practicing and exploring
Summary
Chapter 14: Building Web Applications and Services Using ASP.NET Core
Understanding ASP.NET Core
ASP.NET Core startup
ASP.NET Core controllers
ASP.NET Core models
ASP.NET Core views
Taking ASP.NET Core further
ASP.NET Core Web API
Practicing and exploring
Summary
Chapter 15: Taking C# Cross-Platform
Understanding cross-platform development
Installing Visual Studio Code and ASP.NET Core
Building a console application
Building cross-platform web applications using ASP.NET Core
Understanding the .NET Core command-line tools
Practicing and exploring
Summary
Chapter 16: Building a Quiz
Designing the quiz application
Building the quiz solution
Running the quiz
Hosting ASP.NET Core web apps in Microsoft Azure
Practicing and exploring
Summary

Book Details

ISBN 139781785285691
Paperback550 pages
Read More
From 23 reviews

Read More Reviews