C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition

C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition is a practical guide to creating powerful cross-platform applications with C# 7 and .NET Core 2.0.
Preview in Mapt

C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition

Mark J. Price

19 customer reviews
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition is a practical guide to creating powerful cross-platform applications with C# 7 and .NET Core 2.0.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $31.99
Save 68%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 10.00
Learning ASP.NET Core 2.0 Book Cover
Learning ASP.NET Core 2.0
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $47.98
Add to Cart

Book Details

ISBN 139781788398077
Paperback800 pages

Book Description

C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition, is a practical guide to creating powerful cross-platform applications with C# 7.1 and .NET Core 2.0. It gives readers of any experience level a solid foundation in C# and .NET. The first part of the book runs you through the basics of C#, as well as debugging functions and object-oriented programming, before taking a quick tour through the latest features of C# 7.1 such as default literals, tuples, inferred tuple names, pattern matching, out variables, and more.

After quickly taking you through C# and how .NET works, this book dives into the .NET Standard 2.0 class libraries, covering topics such as packaging and deploying your own libraries, and using common libraries for working with collections, performance, monitoring, serialization, files, databases, and encryption. The final section of the book demonstrates the major types of application that you can build and deploy cross-device and cross-platform. In this section, you'll learn about websites, web applications, web services, Universal Windows Platform (UWP) apps, and mobile apps. 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.

Table of Contents

Chapter 1: Hello, C#! Welcome, .NET Core!
Setting up your development environment
Understanding .NET
Writing and compiling code using the .NET Core CLI tool
Writing and compiling code using Visual Studio 2017
Writing and compiling code using Visual Studio Code
Writing and compiling code using Visual Studio for Mac
Managing source code with GitHub
Practicing and exploring
Summary
Chapter 2: Part 1 – C# 7.1
Chapter 3: Speaking C#
Understanding C# basics
Declaring variables
Exploring console applications further
Operating on variables
Practicing and exploring
Summary
Chapter 4: Controlling the Flow and Converting Types
Selection statements
Iteration statements
Casting and converting between types
Handling exceptions when converting types
Checking for overflow
Looking for help
Practicing and exploring
Summary
Chapter 5: Writing, Debugging, and Testing Functions
Writing functions
Debugging an application during development
Logging during development and runtime
Unit testing functions
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 how parameters are passed
Splitting classes using partial
Controlling access with properties and indexers
Practicing and exploring
Summary
Chapter 7: Implementing Interfaces and Inheriting Classes
Setting up a class library and console application
Simplifying methods with operators
Defining local functions
Raising and handling events
Implementing interfaces
Making types more reusable with generics
Managing memory with reference and value types
Inheriting from classes
Casting within inheritance hierarchies
Inheriting and extending .NET types
Practicing and exploring
Summary
Chapter 8: Part 2 – .NET Core 2.0 and .NET Standard 2.0
Chapter 9: Understanding and Packaging .NET Standard Types
Understanding assemblies and namespaces
Sharing code cross-platform with .NET Standard 2.0 class libraries
Understanding NuGet packages
Publishing your applications for deployment
Packaging your libraries for NuGet distribution
Porting from .NET Framework to .NET Core
Practicing and exploring
Summary
Chapter 10: Using Common .NET Standard Types
Working with numbers
Working with text
Working with collections
Working with network resources
Working with types and attributes
Internationalizing your code
Practicing and exploring
Summary
Chapter 11: Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding text
Serializing object graphs
Practicing and exploring
Summary
Chapter 12: Protecting Your Data and Applications
Understanding the vocabulary of protection
Encrypting and decrypting data
Hashing data
Signing data
Generating random numbers
Authenticating and authorizing users
Practicing and exploring
Summary
Chapter 13: Working with Databases Using Entity Framework Core
Understanding modern databases
Setting up Entity Framework Core
Defining Entity Framework Core models
Querying an EF Core model
Manipulating data with EF Core
Practicing and exploring
Summary
Chapter 14: Querying and Manipulating Data Using LINQ
Writing LINQ queries
Working with sets
Using LINQ with EF Core
Sweetening the syntax with syntactic sugar
Using multiple threads with parallel LINQ
Creating your own LINQ extension methods
Working with LINQ to XML
Practicing and exploring
Summary
Chapter 15: Improving Performance and Scalability Using Multitasking
Monitoring performance and resource usage
Understanding processes, threads, and tasks
Running tasks asynchronously
Synchronizing access to shared resources
Understanding async and await
Practicing and exploring
Summary
Chapter 16: Part 3 – App Models
Chapter 17: Building Web Sites Using ASP.NET Core Razor Pages
Understanding web development
Understanding ASP.NET Core
Exploring Razor Pages
Using Entity Framework Core with ASP.NET Core
Practicing and exploring
Summary
Chapter 18: Building Web Sites Using ASP.NET Core MVC
Setting up an ASP.NET Core MVC website
Understanding an ASP.NET Core MVC website
Practicing and exploring
Summary
Chapter 19: Building Web Services and Applications Using ASP.NET Core
Building web services using ASP.NET Core Web API
Documenting and testing web services using Swagger
Building SPAs using Angular
Using other project templates
Practicing and exploring
Summary
Chapter 20: Building Windows Apps Using XAML and Fluent Design
Understanding the modern Windows platform
Creating a modern Windows app
Using resources and templates
Data binding
Building apps using Windows Template Studio
Practicing and exploring
Summary
Chapter 21: Building Mobile Apps Using XAML and Xamarin.Forms
Understanding Xamarin and Xamarin.Forms
Building mobile apps using Xamarin.Forms
Practicing and exploring
Summary
Chapter 22: Summary
Good luck!
Chapter 23: Answers to the Test Your Knowledge Questions
Chapter 1 – Hello, C#! Welcome, .NET Core!
Chapter 2 – Speaking C#
Chapter 3 – Controlling the Flow and Converting Types
Chapter 4 – Writing, Debugging, and Testing Functions
Chapter 5 – Building Your Own Types with Object-Oriented Programming
Chapter 6 – Implementing Interfaces and Inheriting Classes
Chapter 7 – Understanding and Packaging .NET Standard Types
Chapter 8 – Using Common .NET Standard Types
Chapter 9 – Working with Files, Streams, and Serialization
Chapter 10 – Protecting Your Data and Applications
Chapter 11 – Working with Databases Using Entity Framework Core
Chapter 12 – Querying and Manipulating Data Using LINQ
Chapter 13 – Improving Performance and Scalability Using Multitasking

What You Will Learn

  • Build cross-platform applications using C# 7.1 and .NET Core 2.0
  • Explore ASP.NET Core 2.0 and learn how to create professional websites, services, and applications
  • Improve your application’s performance using multitasking
  • Use Entity Framework Core and LINQ to query and manipulate data
  • Master object-oriented programming with C# to increase code reuse and efficiency
  • Familiarize yourself with cross-device app development using the Universal Windows Platform
  • Protect and manage your files and data with encryption, streams, and serialization
  • Get started with mobile app development using Xamarin.Forms
  • Preview the nullable reference type feature of C# 8

Authors

Table of Contents

Chapter 1: Hello, C#! Welcome, .NET Core!
Setting up your development environment
Understanding .NET
Writing and compiling code using the .NET Core CLI tool
Writing and compiling code using Visual Studio 2017
Writing and compiling code using Visual Studio Code
Writing and compiling code using Visual Studio for Mac
Managing source code with GitHub
Practicing and exploring
Summary
Chapter 2: Part 1 – C# 7.1
Chapter 3: Speaking C#
Understanding C# basics
Declaring variables
Exploring console applications further
Operating on variables
Practicing and exploring
Summary
Chapter 4: Controlling the Flow and Converting Types
Selection statements
Iteration statements
Casting and converting between types
Handling exceptions when converting types
Checking for overflow
Looking for help
Practicing and exploring
Summary
Chapter 5: Writing, Debugging, and Testing Functions
Writing functions
Debugging an application during development
Logging during development and runtime
Unit testing functions
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 how parameters are passed
Splitting classes using partial
Controlling access with properties and indexers
Practicing and exploring
Summary
Chapter 7: Implementing Interfaces and Inheriting Classes
Setting up a class library and console application
Simplifying methods with operators
Defining local functions
Raising and handling events
Implementing interfaces
Making types more reusable with generics
Managing memory with reference and value types
Inheriting from classes
Casting within inheritance hierarchies
Inheriting and extending .NET types
Practicing and exploring
Summary
Chapter 8: Part 2 – .NET Core 2.0 and .NET Standard 2.0
Chapter 9: Understanding and Packaging .NET Standard Types
Understanding assemblies and namespaces
Sharing code cross-platform with .NET Standard 2.0 class libraries
Understanding NuGet packages
Publishing your applications for deployment
Packaging your libraries for NuGet distribution
Porting from .NET Framework to .NET Core
Practicing and exploring
Summary
Chapter 10: Using Common .NET Standard Types
Working with numbers
Working with text
Working with collections
Working with network resources
Working with types and attributes
Internationalizing your code
Practicing and exploring
Summary
Chapter 11: Working with Files, Streams, and Serialization
Managing the filesystem
Reading and writing with streams
Encoding text
Serializing object graphs
Practicing and exploring
Summary
Chapter 12: Protecting Your Data and Applications
Understanding the vocabulary of protection
Encrypting and decrypting data
Hashing data
Signing data
Generating random numbers
Authenticating and authorizing users
Practicing and exploring
Summary
Chapter 13: Working with Databases Using Entity Framework Core
Understanding modern databases
Setting up Entity Framework Core
Defining Entity Framework Core models
Querying an EF Core model
Manipulating data with EF Core
Practicing and exploring
Summary
Chapter 14: Querying and Manipulating Data Using LINQ
Writing LINQ queries
Working with sets
Using LINQ with EF Core
Sweetening the syntax with syntactic sugar
Using multiple threads with parallel LINQ
Creating your own LINQ extension methods
Working with LINQ to XML
Practicing and exploring
Summary
Chapter 15: Improving Performance and Scalability Using Multitasking
Monitoring performance and resource usage
Understanding processes, threads, and tasks
Running tasks asynchronously
Synchronizing access to shared resources
Understanding async and await
Practicing and exploring
Summary
Chapter 16: Part 3 – App Models
Chapter 17: Building Web Sites Using ASP.NET Core Razor Pages
Understanding web development
Understanding ASP.NET Core
Exploring Razor Pages
Using Entity Framework Core with ASP.NET Core
Practicing and exploring
Summary
Chapter 18: Building Web Sites Using ASP.NET Core MVC
Setting up an ASP.NET Core MVC website
Understanding an ASP.NET Core MVC website
Practicing and exploring
Summary
Chapter 19: Building Web Services and Applications Using ASP.NET Core
Building web services using ASP.NET Core Web API
Documenting and testing web services using Swagger
Building SPAs using Angular
Using other project templates
Practicing and exploring
Summary
Chapter 20: Building Windows Apps Using XAML and Fluent Design
Understanding the modern Windows platform
Creating a modern Windows app
Using resources and templates
Data binding
Building apps using Windows Template Studio
Practicing and exploring
Summary
Chapter 21: Building Mobile Apps Using XAML and Xamarin.Forms
Understanding Xamarin and Xamarin.Forms
Building mobile apps using Xamarin.Forms
Practicing and exploring
Summary
Chapter 22: Summary
Good luck!
Chapter 23: Answers to the Test Your Knowledge Questions
Chapter 1 – Hello, C#! Welcome, .NET Core!
Chapter 2 – Speaking C#
Chapter 3 – Controlling the Flow and Converting Types
Chapter 4 – Writing, Debugging, and Testing Functions
Chapter 5 – Building Your Own Types with Object-Oriented Programming
Chapter 6 – Implementing Interfaces and Inheriting Classes
Chapter 7 – Understanding and Packaging .NET Standard Types
Chapter 8 – Using Common .NET Standard Types
Chapter 9 – Working with Files, Streams, and Serialization
Chapter 10 – Protecting Your Data and Applications
Chapter 11 – Working with Databases Using Entity Framework Core
Chapter 12 – Querying and Manipulating Data Using LINQ
Chapter 13 – Improving Performance and Scalability Using Multitasking

Book Details

ISBN 139781788398077
Paperback800 pages
Read More
From 19 reviews

Read More Reviews

Recommended for You

Learning ASP.NET Core 2.0 Book Cover
Learning ASP.NET Core 2.0
$ 35.99
$ 10.00
ASP.NET Core 2 High Performance - Second Edition Book Cover
ASP.NET Core 2 High Performance - Second Edition
$ 39.99
$ 10.00
Practical Test-Driven Development using C# 7 Book Cover
Practical Test-Driven Development using C# 7
$ 39.99
$ 10.00
Mastering Swift 4 - Fourth Edition Book Cover
Mastering Swift 4 - Fourth Edition
$ 35.99
$ 10.00
Mastering Unity 2017 Game Development with C# - Second Edition Book Cover
Mastering Unity 2017 Game Development with C# - Second Edition
$ 39.99
$ 10.00
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 10.00